GF4 / JMS 2.0 - How to read from JMS Temporary Queue? (Regression from GF3.1)
I am in the process of upgrading to GF4 and I decided to try JMS 2.0.
I have a MDB that listens to a topic and then replies to a temporary queue via getJMSReplyTo()
This is all done in a @Singleton EJB.
Question becomes, how do I listen to temporary queue replies?
I can't seem to do it in MDB because it requires a non-temporary predefined queue to listen to,
and MessageConsumer.setMessageListener doesn't work in JMS 2.0 with JMXContext @Injected.
I even tried the new concurrent context API to try to start another thread, and manually receive() the messages to no avail.
Does anyone have experience with this or am I missing something?