I noticed only now this:
http://tomee.apache.org/jmsconnectionfactory-config.html
Where it says:
<http://tomee-openejb.979440.n4.nabble.com/file/n4676752/xa.png> 


And I think this is the missing bit that made me NOT understand your
approach.

Now I read it differently

------------------------------------
  <Resource id="BrokerIn" type="ActiveMQResourceAdapter">
    BrokerXmlConfig =
    ServerUrl =
tcp://localhost:61616?jms.redeliveryPolicy.maximumRedeliveries=0
  </Resource>

  <Resource id="BrokerOut" type="ActiveMQResourceAdapter">
    BrokerXmlConfig =
    ServerUrl =
tcp://localhost:61617?jms.redeliveryPolicy.maximumRedeliveries=0
  </Resource>

  <Resource id="jms/MyIncomingConnFactory"
type="javax.jms.ConnectionFactory">
        ResourceAdapter = BrokerIn
        *transactionSupport = xa* --> optional because default
  </Resource>
  <Resource id="jms/MyOutgoingConnFactory"
type="javax.jms.ConnectionFactory">
        ResourceAdapter = BrokerOut
        *transactionSupport = xa* --> optional because default
  </Resource>
------------------------------------

Meaning that it is that parameter telling the ActiveMQ ra and Geronimo how
to get and deal with ActiveMQ connections and Sessions, without the
tomee.xml file to have to specify the name of the XA driver.

I think I was a bit mislead by the xa datasource configuration:
------------------------------------
  <Resource id="jdbc/myDBXAPooled" type="DataSource">
    XaDataSource myDBXA
    DataSourceCreator dbcp
    JtaManaged true
    UserName none
    Password none
    MaxWait 2000
    ValidationQuery SELECT 1 FROM SYSIBM.SYSDUMMY1
    MaxActive 15
  </Resource>
  *<Resource id="myDBXA" type="XADataSource"
class-name="org.apache.derby.jdbc.ClientXADataSource">*
    DatabaseName xaTestDB
    ServerName localhost
    PortNumber 1527
    User none
    Password none
  </Resource>
------------------------------------
where it is necessary to specify the name of the XA driver.

*Is this final interpretation of mine correct?*

Let me shape up my test case to see what I get now :)



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Tomee-MySql-ActiveMQ-XA-Distributed-Transactions-tp4676680p4676752.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to