1 Reply Latest reply on Nov 11, 2010 10:36 PM by Clebert Suconic

    Remote JNDI Connection

    Michael Rother Newbie

      I took the jms/queue example and tried to connect to a remote instance of a Standalone HornetQ server with JNDI. The jms/queue example works fine when the client and server run on the same box. But when i try to make the connection to a different server, I get this failure. I am sure I am only using the hornetQ jar files from the 2.1.1.Final distribution.

       

           [java] javax.jms.JMSException: Server and client versions incompatible
           [java]     at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287)
           [java]     at org.hornetq.core.client.impl.FailoverManagerImpl.createSession(FailoverManagerImpl.java:412)
           [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:1123)
           [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:849)
           [java]     at org.hornetq.jms.client.HornetQConnection.authorize(HornetQConnection.java:565)
           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:624)
           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:116)
           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:111)
           [java]     at org.hornetq.jms.example.QueueExample.runExample(QueueExample.java:55)
           [java]     at org.hornetq.common.example.HornetQExample.run(HornetQExample.java:73)
           [java]     at org.hornetq.jms.example.QueueExample.main(QueueExample.java:35)
           [java] Caused by: HornetQException[errorCode=108 message=Server and client versions incompatible]

           [java] javax.jms.JMSException: Server and client versions incompatible

           [java]     at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287)

           [java]     at org.hornetq.core.client.impl.FailoverManagerImpl.createSession(FailoverManagerImpl.java:412)

           [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:1123)

           [java]     at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:849)

           [java]     at org.hornetq.jms.client.HornetQConnection.authorize(HornetQConnection.java:565)

           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:624)

           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:116)

           [java]     at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:111)

           [java]     at org.hornetq.jms.example.QueueExample.runExample(QueueExample.java:55)

           [java]     at org.hornetq.common.example.HornetQExample.run(HornetQExample.java:73)

           [java]     at org.hornetq.jms.example.QueueExample.main(QueueExample.java:35)

           [java] Caused by: HornetQException[errorCode=108 message=Server and client versions incompatible]

       

      Any ideas why the JNDI loookup is failing?