2 Replies Latest reply on Jun 30, 2008 6:28 AM by Sam Globetrotter

    EJB 3.0 MDB Jboss 4.0.5 ejb-jar.xml jboss.xml

    Sam Globetrotter Newbie

      I have created a MDB

      package com.messaging;

      @MessageDriven(activationConfig =
      {
      @ActivationConfigProperty(propertyName="destinationType",
      propertyValue="javax.jms.Queue"),
      @ActivationConfigProperty(propertyName="destination",
      propertyValue="queue/stream.EMailMessenger")
      }
      )



      public class EMailMessenger implements MessageListener {
      ..............................
      }

      my ejb-jar.xml looks like

      <?xml version='1.0' encoding='UTF-8' ?>
      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
      <enterprise-beans>
      <message-driven>
      <ejb-name>EMailMessenger</ejb-name>
      <ejb-class>com.messaging.EMailMessenger</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-destination-type>javax.jms.Queue</message-destination-type>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      my jboss.xml looks like
      <?xml version='1.0' encoding='UTF-8' ?>

      <enterprise-beans>
      <message-driven>
      <ejb-name>EMailMessenger</ejb-name>
      <destination-jndi-name>queue/stream.EMailMessenger</destination-jndi-name>
      </message-driven>
      </enterprise-beans>


      I get the following warning on deployment
      14:52:06,093 INFO [EJBContainer] STARTED EJB: com.messaging.EMailMessenger ejbName: EMailMessenger
      14:52:06,093 WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/stream.EMailMessenger
      14:52:06,093 WARN [MessagingContainer] destination not found: queue/stream.EMailMessenger reason: javax.naming.NameNotFoundException: stream.EMailMessenger not bound
      14:52:06,093 WARN [MessagingContainer] creating a new temporary destination: queue/stream.EMailMessenger
      14:52:06,093 INFO [EMailMessenger] Bound to JNDI name: queue/stream.EMailMessenger

      Please suggest how can I remove this warning on deployment.

      Thanks and regards,
      Sam.