3 Replies Latest reply on Nov 11, 2008 2:32 PM by Peter Johnson

    Location JNDI Bindings

    jfrankman Novice

      I am trying to integrate a tool call Websphere message broker to drop a message into a JBoss JMS queue. In the configuration I need to supply "Location JNDI bindings".

      "Enter a value for the Location JNDI bindings. This value specifies either the file system path or the LDAP location for the bindings file. The bindings file contains definitions for the JNDI-administered objects that are used by the JMSOutput node."

      Can someone please explain what the bindings file is and where it can be found remotely and locally?

      Can it be access with iiop?

        • 1. Re: Location JNDI Bindings
          Peter Johnson Master

          I think the text is referring to the jndi.properties file. For JBossAS, this file should contain:

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


          Where 'yourhostname' is the name or IP address of the host running JBossAS. You can place this file anywhere.

          • 2. Re: Location JNDI Bindings
            jfrankman Novice

            I am not sure if this is the sort of file it is expecting. When I look at another example which uses some other jms provider the file looks something like a jndi tree:

            "#This file is used by the JNDI FSContext.
            #Mon Aug 18 16:43:05 CDT 2008
            brokerQCF/RefAddr/1/Encoding=String
            EX5Source/RefAddr/5/Encoding=String
            brokerQCF/RefAddr/12/Type=UCP
            EX5Fail/RefAddr/5/Encoding=String
            EX5Target/RefAddr/7/Encoding=String
            brokerQCF/RefAddr/10/Encoding=String
            brokerQCF/RefAddr/20/Encoding=String
            EX5Fail/RefAddr/4/Content=1208
            brokerQCF/RefAddr/16/Type=LA
            EX5Fail/RefAddr/7/Content=1
            EX5Target/RefAddr/4/Content=1208
            brokerQCF/RefAddr/2/Encoding=String
            EX5Target/RefAddr/1/Type=EXP
            EX5Source/RefAddr/6/Encoding=String
            EX5Target/RefAddr/7/Content=1
            EX5Source/RefAddr/4/Type=CCS
            brokerQCF/RefAddr/1/Type=TRAN
            brokerQCF/RefAddr/5/Content=SYSTEM.DEF.SVRCONN
            EX5Fail/RefAddr/6/Encoding=String
            EX5Fail/RefAddr/1/Content=-2
            brokerQCF/RefAddr/18/Content=true
            EX5Target/RefAddr/5/Type=TC
            EX5Target/RefAddr/8/Encoding=String
            brokerQCF/RefAddr/8/Content=0
            EX5Source/RefAddr/8/Content=TEST
            brokerQCF/ClassName=com.ibm.mq.jms.MQQueueConnectionFactory
            brokerQCF/RefAddr/11/Encoding=String
            EX5Source/RefAddr/8/Type=QU
            brokerQCF/RefAddr/5/Type=CHAN
            EX5Fail/RefAddr/8/Type=QU
            EX5Target/RefAddr/1/Content=-2
            EX5Source/RefAddr/0/Type=VER"

            Other examples show you don't need to supply a file, but a url of some kind. For instance for sonicMQ the following is entered: "tcp://localhost:2506" at first I thought that maybe "tcp://localhost:1099" would work for JBoss but I was mistaken. Can the JBoss bindings file be accessed via some sort of URL?

            • 3. Re: Location JNDI Bindings
              Peter Johnson Master

              That does look like some kind of dump from a JNDI tree. I know of nothing in JBoss AS that provides this text.

              at first I thought that maybe "tcp://localhost:1099" would work for JBoss


              The correct URL appears in my prior post (hint: use 'jnp' in place of 'tcp').