[rules-users] How to get JmsMessenger to enlist in XA transactions when receiving?

Robert (rob3c) rules-users at 7b9.com
Thu Oct 28 21:41:47 EDT 2010


Hi, I'm trying to test use of Drools pipeline (5.1.0.M2) with XA
transactions. I'd like the transaction to cover receipt of the JMS message
by JmsMessenger as well as successful addition of facts into the ksession,
flows interaction, etc., based on the message content.

I'm using the Bitronix transaction manager, Hibernate for persistence to a
SqlServer database via MS JDBC driver, and ActiveMQ for JMS. I have ActiveMQ
running in a separate process, and I'm doing everything else in a simple
standalone java app.

When not configured for XA, everything works fine. However, when configured
for XA, the log shows that the JMS resource is not enlisting in the
transaction. Hibernate enlists ok.

Before I go into further configuration detail, can anyone tell me if this is
even possible using the standard pipeline JMS functionality? Or will this
require custom code? I've searched extensively for docs or samples
discussing this, but haven't found any specifically using XA with the
pipeline JMS receiver. Any help would be greatly appreciated! :)

Thanks in advance,
Robert (rob3c)





More information about the rules-users mailing list