5 Replies Latest reply on Aug 2, 2017 1:31 AM by mnovak

    JMS Bridge from WildFly 10 to JBoss 5

    timhallwachs

      Hi,

      I have a WildFly 10 Server and want to bridge JMS Messages to an old JBoss 5 Server.

       

      A bridge between WildFly 10 and WildFly 10 is running:

          <jms-bridge name="jms-test-bridge" quality-of-service="AT_MOST_ONCE" failure-retry-interval="10000" max-retries="1" max-batch-size="10" max-batch-time="100">

              <source connection-factory="ConnectionFactory" destination="queue/JMSBridgeSourceQueue"/>

              <target connection-factory="jms/RemoteConnectionFactory" destination="jms/queues/JMSBridgeTargetQueue" user="jmsuser" password="jmsuser">

                  <target-context>

                      <property name="java.naming.factory.initial" value="org.jboss.naming.remote.client.InitialContextFactory"/>

                      <property name="java.naming.provider.url" value="http-remoting://192.168.1.4:8080"/>

                  </target-context>

              </target>

          </jms-bridge>

       

      But a bridge to JBoss 5 don't work.

      What is the right protocol and port, is http-remoting correct?

      What do I have to configure on the JBoss 5 site?

       

      Thanks for your help and tipps

      Tim Hallwachs

        • 1. Re: JMS Bridge from WildFly 10 to JBoss 5
          mnovak

          Hi Tim,

           

          JNDI properties for JBoss 5 are different. afaik those are:

          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.provider.url=jnp://127.0.0.1:1099
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
          

           

          Also you will need to create new module with JBoss 5 jars for JNDI lookup and this module must be configured in configuration of JMS bridge like <jms-bridge name="jms-test-bridge" module"org.legacy-jboss-jndi" ... >

           

          Module must be located $WF_HOME/modules directory. I'm not able to say the complete list of jars which you will need but I guess that at least following jars from JBoss 5 are required:

          jnp-client.jar

          jboss-messaging-client.jar

           

          Thanks,
          Mirek

          • 2. Re: JMS Bridge from WildFly 10 to JBoss 5
            timhallwachs

            Hi Mirek,

             

            thanks for your help.

            I try to create a new module (the first time for me).

             

            Thanks,

            Tim

            • 3. Re: JMS Bridge from WildFly 10 to JBoss 5
              mnovak

              Creating new module is simple. Create new directory in "modules" dir, for example ..../modules/org/jboss/legacy-jndi/main/ and copy all jars there. Then create module.xml file in this directory which will name this module and include all jars. You can inspire how this file look like in any other module :-)

              • 4. Re: JMS Bridge from WildFly 10 to JBoss 5
                timhallwachs

                Thanks a lot.

                With the new module the bridge works fine.

                 

                I need the following jars in my new model:

                • concurrent.jar
                • javassist.jar
                • jboss-aop-client.jar
                • jboss-common-core.jar
                • jboss-logging-spi.jar
                • jboss-mdr.jar
                • jboss-messaging-client.jar
                • jboss-remoting.jar
                • jnp-client.jar
                • log4j.jar
                • trove.jar
                • 5. Re: JMS Bridge from WildFly 10 to JBoss 5
                  mnovak

                  You're welcome! :-)