2 Replies Latest reply on May 13, 2005 4:02 AM by jordi fabregat

    queue/testQueue, Message Driven Bean don't receive messages.

    jordi fabregat Newbie

      Dear all,

      I have a problem sending a message from a session Bean to a MDB. The message arrives to the queue, becouse I have tested it through the jmx-console. but the message driven bean didn't read anyting. It's easy, but for me fustrating, What can I do to change that?

      ejb-jar ///////////
      <message-driven >






      MDB Xdoclet of Message DBean//////////
      * @ejb.bean name="AudimetroMD"
      * display-name="Audimetro"
      * destination-type="javax.jms.Queue"
      * acknowledge-mode="Auto-acknowledge"
      * @jboss.destination-jndi-name ="queue/testQueue"

      a piece of code of sender...

      connectionFactory =(QueueConnectionFactory) jndiContext.lookup("java:/XAConnectionFactory");

      destination =(Queue) jndiContext.lookup("queue/testQueue");

      a part from that when the JBOSS server is deploy the application shows this

      17:28:11,554 INFO [EjbModule] Deploying AudimetroMD
      17:28:11,992 WARN [JMSContainerInvoker] Could not find the queue destination-jndi-name=="queue/testQueue"
      17:28:11,992 WARN [JMSContainerInvoker] destination not found: queue/testQueue" reason: javax.naming.NameNotFoundException: testQueue" not bound
      17:28:11,992 WARN [JMSContainerInvoker] creating a new temporary destination: queue/testQueue"
      17:28:11,992 ERROR [JMSContainerInvoker] Starting failed jboss.j2ee:binding=message-driven-bean,jndiName=local/AudimetroMD,plugin=invoker,service=EJB
      MBeanException: null Cause: javax.management.MalformedObjectNameException: jboss.mq.destination:service=Queue,name=testQueue" is not a valid ObjectName. Unterminated quote pair, missing quote
      at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166).

      I think that i have done anything wrong, or I am very close to solve this.

      PLEASE, can you help me. It's a simple example.

      Is possible that I need to config something else?