Fork me on GitHub
#immutant
<
2016-06-26
>
a.espolov15:06:26

Guys, how to build a war file from a project that uses messaging?

tcrawley16:06:55

@a.espolov: is this for deployment to WildFly or EAP? If so, you use the lein-immutant plugin: http://immutant.org/documentation/2.1.4/apidoc/guide-wildfly.html

a.espolov17:06:25

@tcrawley: project build stops on the last paragraph

tcrawley18:06:52

@a.espolov: it looks like something in w.c.p.core is causing HornetQ to start as a compilation side-effect, which is probably a bad idea

tcrawley18:06:44

are you doing something like (def x (immutant.messaging/queue "foo"))? If so, that would cause HornetQ to start at compile time instead of run time

a.espolov18:06:24

I'm trying this namespace to initialize the listener for the queue

tcrawley18:06:58

I would move that to a function that you call from your :init function if possible

a.espolov18:06:02

yes (def x (immutant.messaging/queue "foo"))` this is my example

tcrawley18:06:16

I would make that either a defn or a (def (delay (m/queue... to avoid the issue

a.espolov18:06:08

What is the delay time must be?

tcrawley18:06:21

there's no timer on a delay, you just have to deref it every time you use it (def x (delay (m/queue "foo"))), then @x every time you want to use foo