0 Replies Latest reply on Sep 21, 2004 1:30 PM by Robert Szalai

    Please help! How to specify message-destination?

    Robert Szalai Newbie

      Hi!

      I have a session bean which is sending JMS messages
      to a Message Driven Bean.
      In ejb-jar.xml I'm using message-destination-link and
      message-destination in assembly-descriptor (conformity with ejb 2.1 specification).

      How can I specify the real message-destination (for DestinationA)
      in jboss.xml? (in jboss 4.0)
      I haven't found the answer in dtd-s.


      <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>

      (the example is from theserverside.com)