Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JBoss/WildFly and the fly likes How to form a MDB with the topic? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to form a MDB with the topic?" Watch "How to form a MDB with the topic?" New topic

How to form a MDB with the topic?

Qian Yang

Joined: Mar 12, 2003
Posts: 1
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.
I agree. Here's the link:
subject: How to form a MDB with the topic?
It's not a secret anymore!