XA Connection factories only available from JNDI
The JMS specification does not specify that
XAConnectionFactory implementations should be java beans. Because of this, it is not always possible to build a
When you have no way to create a
XAConnectionFactory in a javabean way, you can specify the
className argument of
PoolingConnectionFactory to be bitronix.tm.resource.jms.JndiXAConnectionFactory. This class is an implementation of
XAConnectionFactory that will wrap another implementation fetched from JNDI.
providerUrl properties respectively to the JNDI name of the
XAConnectionFactory implementation, the initial context factory and provider URL used to access the JNDI server. Both can be omitted if there is a default JNDI context (inside an application server for instance).
Here is what your code would look like for creating a SwiftMQ