immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
a.espolov 2016-06-26T15:48:01.000102Z

hello

a.espolov 2016-06-26T15:52:26.000103Z

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

2016-06-26T16:37:55.000105Z

@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.espolov 2016-06-26T17:25:25.000107Z

@tcrawley: project build stops on the last paragraph

2016-06-26T18:14:52.000109Z

@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

2016-06-26T18:15:44.000110Z

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.espolov 2016-06-26T18:16:24.000111Z

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

2016-06-26T18:16:58.000112Z

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

a.espolov 2016-06-26T18:17:02.000113Z

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

2016-06-26T18:18:16.000114Z

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

a.espolov 2016-06-26T18:19:08.000115Z

What is the delay time must be?

2016-06-26T18:20:21.000116Z

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

2016-06-26T18:20:39.000117Z

https://clojuredocs.org/clojure.core/delay

a.espolov 2016-06-26T18:36:00.000118Z

@tcrawley: thanks!)