0 Replies Latest reply on Jul 19, 2011 2:24 AM by nareshpa

    backup server configuration

    nareshpa Newbie

      I am configured two servers(A, B), A is live server, B is backup server

       

      when I down live server A , I got following exceotion but backup server B is working fine

       

       

       

       

       

       

      Jul 19, 2011 11:50:35 AM org.hornetq.core.logging.impl.JULLogDelegate warn

      WARNING: Tried 1 times to connect. Now giving up.

      org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Failed to create session factory; nested exception is HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]

          at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)

          at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)

          at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469)

          at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543)

          at com.advertise.benchmark.protocol.JMSSender.executeRequest(JMSSender.java:46)

          at com.advertise.benchmark.components.searchtracking.AdsSearchMessageExecutor.run(AdsSearchMessageExecutor.java:69)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      Caused by: javax.jms.JMSException: Failed to create session factory

          at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:605)

          at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:119)

          at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:114)

          at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:342)

          at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:288)

          at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:225)

          at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)

          at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)

          ... 6 more

      Caused by: HornetQException[errorCode=2 message=Cannot connect to server(s). Tried with all available servers.]

          at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:619)

          at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:601)

          ... 13 more