0 Replies Latest reply on Sep 13, 2004 4:20 PM by Robert Szalai

    how to specify message-destination in jboss.xml?

    Robert Szalai Newbie

      Hi!

      My session bean is sending JMS messages to a Message Driven Bean.
      In ejb-jar.xml I'm using message-destination-link:

      <enterprise-beans>
      ...

      <ejb-name>SendingEJB</ejb-name>
      ...
      <resource-ref>
      <res-ref-name>jms/TopicFactory</res-ref-name>
      <res-type>javax.jms.TopicConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      <message-destination-ref>
      <message-destination-ref-name>
      jms/Topic
      </message-destination-ref-name>
      <message-destination-type>javax.jms.Topic</message-destination-type>
      <message-destination-usage>Produces</message-destination-usage>
      <message-destination-link>
      DestinationA
      </message-destination-link>

      </message-destination-ref>
      ...

      ...
      </enterprise-beans>


      <message-driven>
      <ejb-name>Receiving MDB</ejb-name>
      ...
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
      <message-destination-type>
      javax.jms.Topic
      </message-destination-type>
      <message-destination-link>
      DestinationA
      </message-destination-link>

      ...
      </message-driven>
      ...
      </enterprise-beans>


      <assembly-descriptor>
      ...
      <message-destination>
      <message-destination-name>DestinationA</message-destination-name>
      </message-destination>

      ...
      </assembly-descriptor>
      </ejb-jar>


      Is there any way to specify the real messaging destination for DestinationA in jboss.xml?


      Thanks
      Robert

      (the example is from theserverside.com)