-
1. Re: Convert MDB to HornetQ Core Consumer
jbertram Jul 24, 2012 1:41 PM (in response to pcarrollnf)1 of 1 people found this helpfulTo be clear, MDBs are a Java EE concept so there is nothing directly analogous to that in the core API.
I recommend you start with http://docs.jboss.org/hornetq/2.3.0.Alpha/docs/user-manual/html/using-core.html#d0e1596 and then take a look at http://docs.jboss.org/hornetq/2.3.0.Alpha/docs/api/org/hornetq/api/core/client/ClientConsumer.html.
-
2. Re: Convert MDB to HornetQ Core Consumer
pcarrollnf Jul 24, 2012 2:27 PM (in response to jbertram)OK, thanks. MessageHandler is what I was looking for. Thanks for pointing me the right direction.
-
3. Re: Convert MDB to HornetQ Core Consumer
ataylor Jul 25, 2012 4:09 AM (in response to pcarrollnf)note that using JMS Message Listeners in a JEE environment is illegal, this is because the application server needs to control all threading and class loading. Altho you will be able to use a core Message Handler the same issues apply and I would recommend not using them as you may see weird consequences.
-
4. Re: Convert MDB to HornetQ Core Consumer
pcarrollnf Jul 25, 2012 7:36 AM (in response to ataylor)So, what exactly is the suggested way of using asynchronous messaging within a JEE application? Are you saying I should stick with the MDB's? Thanks.
-
5. Re: Convert MDB to HornetQ Core Consumer
ataylor Jul 25, 2012 9:41 AM (in response to pcarrollnf)yes, or use remote consumers. fyi the HornetQ resource adapter is written using the core API