1 Reply Latest reply on Apr 22, 2006 2:09 AM by java_steve

    Problem associating Topic with MDB

    srikanthpragada

      I am using MDB that is associated with a topic. The following is my 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>



      Though i want to associate my EJB with topic/testTopic , when the EJB is deployed, it is not associated with topic/testTopic and instead it is associated with test/mdb (where mdb is the name of the ejb).

      I wonder how to associate MDB with the topic whose JNDI is specified in jboss.xml. I was successful with weblogic server 7.0, but jboss 4.0 is working otherwise.

      Can any one help?

      Thank you.

        • 1. Re: Problem associating Topic with MDB
          java_steve

          Hi I am experiencing the same thing and I have checked all over for the solution. It seems that when I deploy the MDB the container creates a Topic with the same name and subscribes my MDB to it. What ever I put in the jboss.xml is ignored.

          jboss.xml

          <message-driven>
          <ejb-name>MessageBean</ejb-name>
          <destination-jndi-name>topic/steveTopic</destination-jndi-name>
          <mdb-user>john</mdb-user>
          <mdb-passwd>needle</mdb-passwd>
          <mdb-subscription-id>tttest</mdb-subscription-id>
          </message-driven>