Hello All,
I am having problem with getting a message to a NonDurable Topic. I am using JBoss 3.2.1
The following are my various configurations :
ejb-jar.xml
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>HelloTopicMDB</ejb-name>
<ejb-class>com.mdb.HelloMDB</ejb-class>
<transaction-type>Container</transaction-type>
<message-selector>MessageFormat = 'Version 3.4'</message-selector>
<acknowledge-mode>auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>NonDurable</subscription-durability>
</message-driven-destination>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<ejb-name>HelloTopicMDB</ejb-name>
<method-name>*</method-name>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
jboss.xml
<enterprise-beans>
<message-driven>
<ejb-name>HelloTopicMDB</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>topic/helloTopic</destination-jndi-name>
</message-driven>
</enterprise-beans>
helloTopic-service.xml
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
The Topic does seem to get created as I don't see any errors while the jar is being deployed. Its just that the onMessage method of the MDB doesn't wake up. The client runs fine though.
Thanks
My first guess would be that none of your
message match the selector.
What messages do you have in the server log
for the mdb deployment.
Regards,
Adrian