Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to form a MDB with the topic?

Qian Yang
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used JBoss 3.0 and JBoss JMS 3.04 for MDB. If MDB listen to a queue, it worked fine. But I have the problem when I formed it as a topic.
The following is my Deployment descriptor modified from a queue:
1. ejb-jar.xml:
<message-selector>executionState ='open.ready_to_run'</message-selector>
2. jboss.xml
<configuration-name>Standard Message Driven Bean</configuration-name>
I got the following error in deployment
15:14:41,203 WARN [JMSContainerInvoker] JMS provider failure detected: Cannot subscribe to this Destination: null
I checked JBoss console, the deployed topic DefaultChannel is there.
When I modified <destination-type> in ejb-jar.xml from javax.jms.Topic to Topic, the complain in deploy is gone, but onMessage() in MDB didn't get called in runtime.
I'd be very appreciated if anyone can help me to solve this issue.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic