Here is the ejb-jar.xml and the jboss.xml. I am getting a message that says I cannot
find queue/MyMessageBean. In the configuration I am trying to point the Message
Bean to queue/TestQueue.
ejb-jar.xml
| ejb-jar
| description
| Message Driven Bean EJB
| /description
|
The MDB does not need to know the connection factory. You just need to link the MDB
with the queue, which you are doing correctly in the jboss.xml
Maybe the problem is in your servlet code where you are sending the messages.
View the original post :
I have checked the servlet code and it is working. I wrote a class that uses
QueueBrowser to check the messages. All of the messages I sent are on the Queue.
Here is the code for the servlet:
| package com.hott.servlets;
| import javax.jms.*;
| import javax.naming.*;
| import
jndiContext.lookup(ConnectionFactory);
I am not sure about this, but have you changed the JNDI name for the connection
factory. The default name is JmsXA
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3850044#3850044
Reply to the post :
Jerry,
Your mappings are probably not correct. By default jboss will create a queue for
anymessage driven beans that are not attached to a queue.
Check http://localhost:8080/jmx-console to see what queues you have.
Post your config files if you don't have any luck
HTH
Oz
View the original