Hi!

How can I subscribe the same mdb class to two topics?  Here are my working ejb-jar and 
jboss xmls for subscribing to 1 topic.


-----------------------------

<ejb-jar> 
  <enterprise-beans> 
    <message-driven> 
       <ejb-name>LinkPublisherMDB</ejb-name>
       <ejb-class>com.crisys.sf.framework.link.LinkPublisherMDB</ejb-class>
       <message-selector></message-selector>
       <transaction-type>Container</transaction-type>
        <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
       <message-driven-destination>
           <destination-type>javax.jms.Topic</destination-type>
           <subscription-durability>Durable</subscription-durability>
       </message-driven-destination>
       <resource-ref>
            <res-ref-name>jms/TCF</res-ref-name>
                    <res-type>javax.jms.TopicConnectionFactory</res-type>
                    <res-auth>Container</res-auth>
       </resource-ref>
       <resource-ref>
            <res-ref-name>jmsProvider</res-ref-name>
                    <res-type>org.jboss.jms.jndi.JMSProviderLoader</res-type>
                    <res-auth>Container</res-auth>
       </resource-ref>       
    </message-driven> 
  </enterprise-beans> 
</ejb-jar>

+++++++++++++++++++
 
  <enterprise-beans> 
      <message-driven>
              <ejb-name>LinkPublisherMDB</ejb-name>
              <configuration-name>Standard Message Driven Bean</configuration-name>
              
<destination-jndi-name>topic/COM.CRISYS.SF.DTO.CALL</destination-jndi-name>
                  <mdb-user>guest</mdb-user>
              <mdb-passwd>guest</mdb-passwd>              
              <mdb-subscription-id>link1</mdb-subscription-id>
           <resource-ref>
                            <res-ref-name>jms/TCF</res-ref-name>
                            <jndi-name>UIL2ConnectionFactory</jndi-name>
           </resource-ref>
           <resource-ref>
                            <res-ref-name>jmsProvider</res-ref-name>
                            <jndi-name>java:/DefaultJMSProvider</jndi-name>
           </resource-ref>                  
      </message-driven>

      
  </enterprise-beans> 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847803#3847803

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847803


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to