0 Replies Latest reply on Oct 21, 2002 8:42 PM by famousactress

    MDB Deployment creates topic

    famousactress

      I'm not sure what the correct pattern for doing this is. I have a service (packed in a .sar file) that pulls messages from a socket and shoves them to a topic or queue. It defines a deployment descriptor that creates the topic like so:


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



      I also deploy a jar file that contains my mdb, the jboss.xml contains the entry:

      <message-driven>
      <ejb-name>mypackage.MyBean</ejb-name>
      <destination-jndi-name>
      topic/MyTopicName
      </destination-jndi-name>
      </message-driven>

      Problem.. If I deploy my services (.sar) first.. everything works. The topic is created, and when the mdb is deployed they hook up. However, if I deploy the mdb first, the topic gets created. Then the deployment of my service is unable to create the topic itself.

      Is this just ok? Is there something I'm not getting?

      thanks in advance and I apologize if this is a silly question.
      -phill