0 Replies Latest reply on Dec 18, 2002 6:01 PM by grjustin

    Message Driven Bean

    grjustin

      I have created a topic with the following entry in jbossmq-destinations-service.xml


      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager


      I have written a sample MDB which is a producer for this topic.

      The following is the entry in ejb-jar.xml file

      <message-driven>
      <ejb-name>Download</ejb-name>
      <ejb-class>sample.sampMDBBean</ejb-class>
      <message-selector></message-selector>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>Nondurable</subscription-durability>
      </message-driven-destination>
      </message-driven>

      and the following is the entry in jboss.xml file

      <message-driven>
      <ejb-name>SampMDB</ejb-name>
      <jndi-name>SampMDBname</jndi-name>
      <destination-jndi-name>topic/ITCockpitTopic</destination-jndi-name>
      </message-driven>

      Even though I have assigned a JNDI name for the bean it does not show-up in the JNDIView of the console, and I am not able to access it using this name. It does show that the Bean is registered with the name "local/SampMDB", using this name also does not give me acces to the bean.

      Any answers please respond?

      Thank you.