Hi

I can run 2 tomee's using 2 external JMS servers in the failover mode,
using a tomee.xml like this

     <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
         BrokerXmlConfig  =
         ServerUrl =
failover:(tcp://s1:61616,tcp://s2:61616)?randomize=false
     </Resource>


If I want to start two embedded JMS servers, one in each tomee, in a
failover mode, what's the syntax? I've been trying this

     <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
         BrokerXmlConfig = broker:(tcp://s1:61616)?persistent=true
         ServerUrl = failover:(tcp://s1:61616,tcp:/s2:61616)?randomize=false
         DataSource = MyJmsDataSource
     </Resource>

where MyJmsDataSource points to some JDBC resource (must be the same for
both). Of course, the other tomee declares its broker in the
"BrokerXmlConfig"

But something is not right. I feel I am missing something. Is this the
right syntax?

TIA

Leo

Reply via email to