I've switched to using remote artemis, but I'm seeing an error on my JMS connections:
javax.jms.JMSException: AMQ159007: Invalid Session Mode SESSION_TRANSACTED, to enable Local Transacted Sessions you can set the allowLocalTransactions (allow-local-transactions) on the resource adapter
at org.apache.acti...@2.10.1//org.apache.activemq.artemis.ra.ActiveMQRASessionFactoryImpl.allocateConnection(ActiveMQRASessionFactoryImpl.java:847)
at org.apache.acti...@2.10.1//org.apache.activemq.artemis.ra.ActiveMQRASessionFactoryImpl.createQueueSession(ActiveMQRASessionFactoryImpl.java:297)
at rave-messaging-jms3-impl//com.raveu.messaging.jms3.impl.unsafe.ThreadUnsafeJmsConnectionImpl.createSession(ThreadUnsafeJmsConnectionImpl.java:31)
My configuration looks like:
<subsystem xmlns="urn:jboss:domain:messaging-activemq:11.0">
<remote-connector name="remote-artemis" socket-binding="remote-artemis"/>
<connection-factory name="artemis" connectors="remote-artemis" entries="java:/ConnectionFactory"/>
<pooled-connection-factory name="activemq-ra"
entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory"
connectors="remote-artemis"
transaction="xa"
user="artemis"
password="artemis"/>
</subsystem>
The error message looks helpful but I'm not quite sure what it's trying to tell me, or where SESSION_TRASACTED is coming from.