2 Replies Latest reply on Dec 1, 2006 2:24 PM by somu junkee

    MDBs and Connection Factories

    somu junkee Newbie

      I have a two node JBoss 4.0.2 cluster with one node per machine. I set the connection factories in \jboss-4.0.2\server\bbw\deploy-hasingleton\jms\ uil2-service.xml as


      QueueConnectionFactory
      ConnectionFactory
      java:/JmsXA
      jboss:service=Naming


      TopicConnectionFactory
      ConnectionFactory
      java:/JmsXA
      jboss:service=Naming


      I am trying to see the connection factories listed on the jmx-console of both machines. But I only see them on the node that is started first and I get the following error message

      javax.naming.NameNotFoundException: queue not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      at org.jboss.ha.jndi.TreeHead.lookupLocally(TreeHead.java:296)
      at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:215)
      at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:595)

      Any help appreciated Thanks

        • 1. Re: MDBs and Connection Factories
          somu junkee Newbie

          Incorrectly posted earlier ? sorry
          I have a two node JBoss 4.0.2 cluster with one node per machine. I set the connection factories in \jboss-4.0.2\server\bbw\deploy-hasingleton\jms\ uil2-service.xml as


          QueueConnectionFactory
          ConnectionFactory
          java:/JmsXA
          jboss:service=Naming


          TopicConnectionFactory
          ConnectionFactory
          java:/JmsXA
          jboss:service=Naming


          I am trying to see the connection factories listed on the jmx-console of both machines. But I only see them on the node that is started first and I get the following error message

          javax.naming.NameNotFoundException: queue not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
          at org.jboss.ha.jndi.TreeHead.lookupLocally(TreeHead.java:296)
          at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:215)
          at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
          at sun.rmi.transport.Transport$1.run(Transport.java:153)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
          at java.lang.Thread.run(Thread.java:595)

          • 2. Re: MDBs and Connection Factories
            somu junkee Newbie

            code in uil2-service.xml on both machines


            QueueConnectionFactory
            ConnectionFactory
            java:/JmsXA
            jboss:service=Naming


            TopicConnectionFactory
            ConnectionFactory
            java:/JmsXA
            jboss:service=Naming