0 Replies Latest reply on Feb 5, 2006 1:33 AM by srikanthpragada

    Topic JNDI problem in MDB

    srikanthpragada

      Hello,

      I have created an MDB ( message driven bean), which is associated with a topic. I have create the following .XML files.

      ejb-jar.xml

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>mdb</ejb-name>
      <ejb-class>st.mdb.MessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      </message-driven-destination>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>


      jboss.xml

      <?xml version="1.0"?>

      <!DOCTYPE jboss PUBLIC
      '-//JBoss//DTD JBOSS 3.2//EN'
      'http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd'>


      <enterprise-beans>
      <message-driven-descriptor>
      <ejb-name>mdb</ejb-name>
      <destination-jndi-name>topic/testTopic</destination-jndi-name>
      </message-driven-descriptor>
      </enterprise-beans>



      But the probolem is; while i am deploying this EJB, JBoss is biniding this EJB with a topic topic/mdb. But i am clearly specifying i want topic/testTopic topic to be associated with EJB.

      Where did i go wrong? Please help!

      Thank you,
      Srikanth.