I have a basic doubt regarding Transactions and the HornetQ native API.
If my application is Spring-based, with Spring managed transactions, how should I configure HornetQ to participate in the same transaction managed by Spring (AOP)?
Using the JMS API I guess it’s fairly obvious, since Spring considers JMS resources as transactional.
But I don’t know how to do it correctly using the nativa API. Could someone shed a light on this problem?
Many thanks!
HornetQ supports XA on the core API, they are just resources.
You should be able to enlist these resources on Spring if that’s just using regular XA API.
http://docs.jboss.org/hornetq/2.2.5.Final/api/org/hornetq/api/core/client/ClientSession.html
I’m not sure though how that integration is done on Spring. If there’s anything not working it could (and should) be fixed or improved on a spring-integration module.