Hello,
I´m trying to listen more than one topic with the same MDB (I use Geronimo 2.0.2). I managed to do this defining two message-driven in the same ejb-jar.xml as the example below, but I want to know if it is possible with only one message-driven tag. Thanks. <?xml version="1.0"?> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ejb-jar_1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"> <enterprise-beans> <message-driven> <ejb-name>MdbOneBean1</ejb-name> <ejb-class>MdbOneBean</ejb-class> <transaction-type>Container</transaction-type> <message-destination-type>javax.jms.Topic</message-destination-type> <activation-config> <activation-config-property> <activation-config-property-name>destination</activation-config-property-name> <activation-config-property-value>IntegrationTopic1</activation-config-property-value> </activation-config-property> </activation-config> <resource-ref> <description>JMS Broker</description> <res-ref-name>jms/LocalConnectionFactory</res-ref-name> <res-type>javax.jms.ConnectionFactory</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-env-ref> <resource-env-ref-name>jms/LocalTopic1</resource-env-ref-name> <resource-env-ref-type>javax.jms.Topic</resource-env-ref-type> </resource-env-ref> </message-driven> <!-- MdbOneBean2 --> <message-driven> <ejb-name>MdbOneBean2</ejb-name> <ejb-class>MdbOneBean</ejb-class> <transaction-type>Container</transaction-type> <message-destination-type>javax.jms.Topic</message-destination-type> <activation-config> <activation-config-property> <activation-config-property-name>destination</activation-config-property-name> <activation-config-property-value>IntegrationTopic2</activation-config-property-value> </activation-config-property> </activation-config> <resource-ref> <description>JMS Broker</description> <res-ref-name>jms/LocalConnectionFactory</res-ref-name> <res-type>javax.jms.ConnectionFactory</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-env-ref> <resource-env-ref-name>jms/LocalTopic1</resource-env-ref-name> <resource-env-ref-type>javax.jms.Topic</resource-env-ref-type> </resource-env-ref> </message-driven> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>MdbOneBean1</ejb-name> <method-name>onMessage</method-name> </method> <trans-attribute>NotSupported</trans-attribute> </container-transaction> <container-transaction> <method> <ejb-name>MdbOneBean2</ejb-name> <method-name>onMessage</method-name> </method> <trans-attribute>NotSupported</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar> -- View this message in context: http://www.nabble.com/Listen-more-than-one-topic-with-the-same-MDB-tp14797281s134p14797281.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
