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,
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"
This is a code snippet which I use to send data to the queue. Hopefully this will help you out.
javax.naming.InitialContext initialContext =
QueueConnection connection = null;
Queue queue = (Queue) initialContext.lookup("queue/testQueue");
connection = qcf.createQueueConnection();
QueueSession session =
QueueSender sender = session.createSender(queue);
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.