Its quite tricky...
This will enable you to use JCA driven XA transactions for message delivery, outside a J2EE container. It will also allow outbound JMS messages to fall into those transactions.
This has only been tested with ActiveMQ using JOTM as the transaction manager.