1 Reply Latest reply on May 25, 2011 3:49 AM by Hans Wolffenbuttel

    JBoss ESB - multiple JBoss ESB servers to one JBoss Messaging Server

    Its Me Newbie

      Hello,

       

      Has anyone attempted a configuration where you have a single JBoss Messaging Server

      (JBoss AS 5.1 + JBoss Messaging) that is accessed by multiple JBoss ESB servers?

       

      I know JBoss Messaging is included with JBoss ESB, but I have a need to run multiple

      JBoss ESBs that read and write to JMS queues (JBoss Messaging) on the same JMS server.

       

      In the SOA guide:

       

      http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/4.2/html/SOA_ESB_Administrators_Guide/ch01s03.html

       

      it mentions to use

       

      jndi-URL="localhost"

      jndi-context-factory="org.jnp.interfaces.NamingContextFactory"

      connection-factory="ConnectionFactory"

      destination-type="queue"

      destination-name="queue/A"

       

      Does this go with the <jms-provider .. definition in the jboss-esb.xml file?

       

      There is this posting in the JBoss ESB forum where some attempted a remote JBoss messaging server:

         http://community.jboss.org/thread/159732

      but, he never got an answer.

       

      What concerns me about the documentation and use of :

                  jndi-URL="localhost" or jndi-URL="remote_ip"

      so does this mean that jndi-URL defaults to jnp: and the default port?

      Should you be using:

               jndi-URL="jnp://host:port"

      or is this really expecting just a hostname or IP and no port?

       

      Also, the documentation states that jboss-messaging-client.jar should be in the classpath.

      You would think that is the case since JBossMessaging is the embedded and the default messaging.

       

       

      Thank you,

      Jon

        • 1. Re: JBoss ESB - multiple JBoss ESB servers to one JBoss Messaging Server
          Hans Wolffenbuttel Expert

          hi,

           

          About the jndi-URL it should be jndi-URL="jnp://127.0.0.1:1099", so you can include the port. Your other question puzzels me a bit because the whole idea of having JBossESB is to have the opportunity to have multiple .esb in your deployment. You can define a connection with your JMS server just by the following code:

           

           

          <jms-provider connection-factory="ConnectionFactory" name="JMS-Provider"

          >

           

           

          or if you want transacted JMS (-JCA)

           

           

           

           

           

           

          <jms-jca-provider connection-factory=

          "XAConnectionFactory"

           

          jndi-context-factory=

          "org.jnp.interfaces.NamingContextFactory"

           

          jndi-pkg-prefix=

          "org.jboss.naming:org.jnp.interfaces"

           

          name="JMS-JCA-Provider" transacted="true"

          >

           

          Are you experiencing some trouble when you deploy more then one .esb?

           

          Regards,

           

          Hans