On 09/17/2014 10:43 PM, Nathan Kunkee wrote:
On 09/15/2014 03:35 PM, Nathan Kunkee wrote:
Hi all,

I'm trying to get QPID JCA adapter, Glassfish, and RabbitMQ to work
together. At this point, I believe that the Destination is not recreated
correctly from the initial Queue when creating a MessageProducer. I can
see in the log messages that the Queue is populated correctly when
initially created, but later when the Session is creating the
MessageProducer, it is empty, causing AMQNoRouteException. It would be
really nice if this could be addressed in your next release.

I downloaded the 0.30-rc code (r6489 I think) and built with maven, with
one change as listed below. It allows use of the JCA adapter if
transactions are not required. When I create a MessageProducer, I get
the following error:
org.apache.qpid.client.AMQNoRouteException: Error: NO_ROUTE [error code
312: no route]

Hi all,

I reproduced this using Wildfly, which at least caused me to look closer
at the error message. In this case, the error was in the bounced message
handler, which I missed earlier. RabbitMQ was rejecting the message as
it decided the routing was too vague. When I updated my BURL destination
string to include exchange, queue, and routing key
(BURL:direct://outbound/hello/fromjava), then I was able to send
outbound messages successfully.

I have been able to get inbound messages from RabbitMQ working by
setting the ActivationConfigProperty destination to the JNDI name of the
queue, and useLocalTx to true. I also ran into issue QPID-5906 and had
to set the -DIMMEDIATE_PREFETCH=true property. My glassfish-ejb-jar.xml
maps the bean name, jndi name, and resource adapter module name together
as required by Glassfish.

Hopefully this is helpful to someone else!

I'm sure it will be, thanks for taking the time to update the list. I'm afraid I have no expertise with the JCA adapter.

Regarding your patch, could you attach it to a JIRA? That's the best mechanism for getting it applied.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to