-
1. Re: MDB not getting message
colway Jun 17, 2003 7:48 AM (in response to raj_skromis)Hi,
I don't think you really want to be sending your message to testQueue.
When you deploy your MDB a new queue should be created automatically, the queue name being the same as your message driven bean.
If in doubt, you can always check the jboss.mq.destination entries via the JBoss console (http://yourhost:8080/jmx-console/index.jsp)
Hope this helps,
Jim -
2. Re: MDB not getting message
vshah Jun 17, 2003 9:42 AM (in response to raj_skromis)Your DOCTYPE tag in ejb-jar.xml file doesn't seem to be syntactically right. Just try replacing that with the following...
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd"> -
3. Re: MDB not getting message
trajano Jul 8, 2003 3:13 PM (in response to raj_skromis)This is a code snippet which I use to send data to the queue. Hopefully this will help you out.
javax.naming.InitialContext initialContext =
new javax.naming.InitialContext();
QueueConnectionFactory qcf;
QueueConnection connection = null;
try {
qcf =
(QueueConnectionFactory) initialContext.lookup(
"ConnectionFactory");
Queue queue = (Queue) initialContext.lookup("queue/testQueue");
connection = qcf.createQueueConnection();
QueueSession session =
connection.createQueueSession(
false,
Session.AUTO_ACKNOWLEDGE);
QueueSender sender = session.createSender(queue);
sender.send(session.createTextMessage("FOO!!!!"));
}
finally {
connection.close();
initialContext.close();
} -
4. Re: MDB not getting message
sanjewad Aug 19, 2003 1:08 AM (in response to raj_skromis)Hi
I am having the same problem with Jboss 3.2.1 did you find a solution to this.
Can you reply me if you found a solution. I think I have posted the same question as you.