0 Replies Latest reply on Jan 31, 2014 12:11 AM by veenaonnet

    Can InVM ConnectionFactory be used with collocated JMS topology with ha and clustering using replication

    veenaonnet Newbie

      Hi,

       

      We are using jboss7.2(built from the code). Have configured collocated topology with replication.

      In this setup, connection factories are only configured in standalone-full-ha.xml for active server.

       

      Now, failover works fine. But on failback the node is not getting the connectionfactory. Checked the jndi view and no connection factory is created there.

      In this setup is it mandatory to use RemoteConnectionfactory?

       

      As data is getting replicated, I believe it is fine to use InVmConenctionFactory. Please comment.

      Error that I am getting -

      Trying to connect with connector = org.hornetq.core.remoting.impl.invm.InVMConnectorFactory@67c3dce0, parameters = {server-id=0} connector = null

       

      2014-01-30 20:47:48,156 DEBUG [org.hornetq.core.client] (default-threads - 2) Trying to connect with connector = org.hornetq.core.remoting.impl.invm.InVMConnectorFactory@1ac18a2f, parameters = {server-id=0} connector = null
      2014-01-30 20:47:48,156 TRACE [org.hornetq.core.client] (default-threads - 1) getConnectionWithRetry::1 with retryInterval = 2000 multiplier = 1.0: java.lang.Exception: trace
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:1054) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:249) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:885) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:330) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:732) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:787) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:218)
              at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
              at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806)
              at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
              at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:826)
              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      2014-01-30 20:47:48,157 DEBUG [org.hornetq.core.client] (default-threads - 1) Trying reconnection attempt 0/1
      2014-01-30 20:47:48,157 DEBUG [org.hornetq.core.client] (default-threads - 1) Trying to connect with connector = org.hornetq.core.remoting.impl.invm.InVMConnectorFactory@3642c3f7, parameters = {server-id=0} connector = null
      2014-01-30 20:47:48,156 TRACE [org.hornetq.core.client] (default-threads - 2) No Backup configured!: java.lang.Exception: trace
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1306) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:1072) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:249) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:885) [hornetq-core-client-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:330) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:732) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:787) [hornetq-ra-2.4.0-SNAPSHOT.jar:]
              at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:218)
              at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
              at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806)