1 Reply Latest reply on Aug 13, 2004 2:43 PM by Elias Ross

    MDB Question

    Huai-Shih Wen Newbie

      I'm trying to deploy a MDB but keep getting following message:
      "Could not find the queue destination-jndi-name=jms/MyQueue" Attached below are the 2 deployment file and partial log message. Can anyone help to resolve this issue. Thanks.

      ejb-jar.xml

      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>SimpleMessageEJB</ejb-name>
      <ejb-class>com.nyl.message.SimpleMessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      <resource-ref>
      <res-ref-name>QCF</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      <resource-env-ref>
      <resource-env-ref-name>jms/MyQueue</resource-env-ref-name>
      <resource-env-ref-type>org.jboss.mq.server.jmx.Queue</resource-env-ref-type>
      </resource-env-ref>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      jboss.xml


      <enterprise-beans>
      <message-driven>
      <ejb-name>SimpleMessageEJB</ejb-name>
      <destination-jndi-name>jms/MyQueue</destination-jndi-name>
      <resource-ref>
      <res-ref-name>QCF</res-ref-name>
      <jndi-name>QueueConnectionFactory</jndi-name>
      </resource-ref>
      </message-driven>
      </enterprise-beans>


      from the log:

      [org.jboss.ejb.EjbModule] startService, starting container: SimpleMessageEJB
      [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/SimpleMessageEJB,service=EJB
      [org.jboss.ejb.MessageDrivenContainer] Starting jboss.j2ee:jndiName=local/SimpleMessageEJB,service=EJB
      [org.jboss.ejb.MessageDrivenContainer] Begin java:comp/env for EJB: SimpleMessageEJB
      [org.jboss.ejb.MessageDrivenContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@add57
      [org.jboss.ejb.MessageDrivenContainer] Binding resource manager: QCF to JDNI ENC as: QueueConnectionFactory
      [org.jboss.ejb.MessageDrivenContainer] Binding env resource: jms/MyQueue to JDNI ENC as: null[org.jboss.ejb.MessageDrivenContainer] End java:comp/env for EJB: SimpleMessageEJB
      [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] SimpleMessageEJB cannot be Bound, doesn't have local and local home interfaces
      [org.jboss.system.ServiceController] starting service jboss.j2ee:binding=message-driven-bean,jndiName=local/SimpleMessageEJB,plugin=invoker,service=EJB
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting jboss.j2ee:binding=message-driven-bean,jndiName=local/SimpleMessageEJB,plugin=invoker,service=EJB
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@18efaea
      [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
      [org.jboss.ejb.plugins.jms.DLQHandler] Using factory: org.jboss.mq.SpyXAConnectionFactory@f9cbe5
      [org.jboss.ejb.plugins.jms.DLQHandler] Created connection: Connection@1389996[token=ConnectionToken:null/b4204daffd86fef5682ea97f140b7b73 rcvstate=STOPPED]
      [org.jboss.mq.referenceable.SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
      [org.jboss.ejb.plugins.jms.DLQHandler] Using Queue: QUEUE.DLQ
      [org.jboss.ejb.plugins.jms.DLQHandler] Created DLQHandler
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] context: javax.naming.InitialContext@76b359
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] jndiSuffix: MyQueue
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Got destination type Queue for SimpleMessageEJB
      [org.jboss.jms.ConnectionFactoryHelper] using connection factory: org.jboss.mq.SpyXAConnectionFactory@f9cbe5
      [org.jboss.jms.ConnectionFactoryHelper] using username/password: null/null
      [org.jboss.jms.ConnectionFactoryHelper] created XAQueueConnection: Connection@5237068[token=ConnectionToken:null/603bca259b68a1279cd1770424beeba7 rcvstate=STOPPED]
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Using client id: null
      [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue destination-jndi-name=jms/MyQueue