0 Replies Latest reply on Sep 14, 2005 12:50 PM by Jonathan Melvin

    Message Driven EJB in 4.0.2 with EJB2.1

    Jonathan Melvin Newbie

      Hi
      I'm having trouble getting a very simple Message driven bean to deploy. (I need to use ejb 2.1 so it can have a timer interface at some point)

      my ejb-jar.xml contains
      <message-driven>
      Message Driven Bean
      <display-name>MessageDrivenEJB</display-name>
      <ejb-name>MessageDrivenEJB</ejb-name>
      <ejb-class>root.ejb.MessageDrivenEJBBean</ejb-class>
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Bean</transaction-type>
      </message-driven>

      my jboss.xml contains
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">

      <enterprise-beans>
      <message-driven>
      <ejb-name>MessageDrivenEJB</ejb-name>
      <destination-jndi-name>jms/events</destination-jndi-name>
      </message-driven>
      </enterprise-beans>


      When I deploy I get
      WARN [JMSContainerInvoker] No message-driven-destination given; using; guessing type

      I guess I need something more in jboss.xml but all the examples I have seen are for ejb2.0
      The warning says no message-driven-destination given, but as I'm using ejb2.1 I can't put one in the ejb-jar.xml