0

I have a jms based webservice implemented in axis2 framework. It uses Tibco EMS for JMS queue and connection factory. Currently I have defined the active EMS server connection in axis2.xml and works fine. However, if this server goes down for some reason, I need to update the ais2.xml manually to point to failover EMS server and then bounce my webservice.

How can I define both active and failover connection such that it switches automatically when active one goes down

Regards, Rajesh

1 Answers1

0

In TIBCO EMS you can define an FT URL using the following syntax : tcp://server:port,tcp://server:port

For example : tcp://server1:7222,tcp://server2:7222

I think you should be able to use such connection URL in your framework.

EmmanuelM
  • 337
  • 1
  • 6
  • Thanks. From TIBCO EMS perspective that's fine. The question is how to specify these multiple server connections in axis2.xml – Rajesh Behari Mishra Oct 14 '20 at 14:37
  • My typical axis2.xml containing the receiver details is as follows com.tibco.tibjms.naming.TibjmsInitialContextFactory tcp://myserverurl:7222 MyQueueConnectionFactory queue – Rajesh Behari Mishra Oct 14 '20 at 14:50
  • 6 6 myusername mypassword connection – Rajesh Behari Mishra Oct 14 '20 at 14:50
  • If you are using JNDI I would do that : tibjmsnaming:/server1:7222,tibjmsnaming://server2:7222, And then I would configure the factories with the following : [TopicConnectionFactory] type = topic url = tcp://server1:7222,tcp://server2:7222 [QueueConnectionFactory] type = queue url = tcp://server1:7222,tcp://server2:7222 – EmmanuelM Oct 15 '20 at 07:34