I got the error from an XAConnectionFactory; javax.jms.JMSException: [JMSPool:169822]Unable to use a wrapped JMS session in the transaction because two-phase commit is not available.

I hadn't checked the XA Connection Factory enabled when setting it up in weblogic.
More reading: Tags, Software Engineering
Cam Riley: South Sea Republic. Freedom, liberty, equity and an Australian Republic.