7 Replies Latest reply on Nov 28, 2014 4:55 AM by Srecko Mandelj

    How to connect java 1.6 JMS client to WildFly 8.1 final?

    Srecko Mandelj Newbie

      Hello to everyone.


      I have a problem trying to get JMS client running on java 1.6 to connect to WildFly 8.1. I tried to use jboss-client.jar, included in wildfly 8.1 distribution, but hornetq classes are compiled with java 1.7, so I get an error

      Caused by: java.lang.UnsupportedClassVersionError: org/hornetq/jms/client/HornetQJMSConnectionFactory : Unsupported major.minor version 51.0

      I've tried to use jboss-client.jar which comes with EAP 6.2 (implementation version inside MANIFEST.MF says 7.3.0.Final-redhat-14), but this doesn't work for me. I get this exception:

      Caused by: java.lang.IllegalStateException: The following keys are invalid for configuring a connector: http-upgrade-endpoint, http-upgrade-enabled

          at org.hornetq.core.client.impl.ClientSessionFactoryImpl.checkTransportKeys(ClientSessionFactoryImpl.java:1504)

      I enabled old remoting port (I added remoting port to socket binding and remoting-connector to remoting subsystem). I connected the old client with remoting://localhost:4447 to the server. Initial context is created, connection factory is looked up ok, but createQueueConnection on QueueConnectionFactory fails. with illegal state exception.I figure that wildfly still sends those http-upgrade transports to the old client. What do I need to do to prevent this?

      Thank you in advance for the answers.


      Best regards, Srecko.