wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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:
org.jboss.mq.SpyJMSException: Cannot subscribe to this Destination: null
at org.jboss.mq.Connection.addConsumer(Connection.java:974)
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.
It is sorta covered in the JavaRanch Style Guide.
subject: How to form a MDB with the topic?
It's not a secret anymore!