0 Replies Latest reply on Jul 14, 2011 10:23 AM by shilp_k

    Hornetq/MDB Deployment issue in JBOSS 6

    shilp_k

      I have mentioned the queue names in hornetq-jms.xml and in the ejb code I have given the

       

      following :

       

      @

       

      org.jboss.ejb3.annotation.Depends("org.hornetq:module=JMS,name=\queueName\",type=Queue"

       

       

       

      ?But still after deployment I get an error saying the

       

       

      Caused by: javax.naming.NameNotFoundException: queueName not bound

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

          at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

          at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

          at org.jnp.server.NamingServer.lookup(NamingServer.java:399)

          at sun.reflect.GeneratedMethodAccessor392.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

          at sun.rmi.transport.Transport$1.run(Transport.java:159)

          at java.security.AccessController.doPrivileged(Native Method)

          at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:619)

          at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)

          at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)

          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)

          at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

       

      Could you please help? I am not able to understand where did I go wrong? Appreciate anyones help