Adam Michalik wrote on May 17, 2009 17:42:
Is there anything more I need to do?
Yes, you need to create the queue. Seam creates manged components to help you send messages (Session, Connection, etc),
but it doesn't create the queue for you. You have to put a file defining your queue(s) in your deploy directory. Check the JBoss 5
manual for details.
Ah, OK, thanks a lot. For future reference:
this post helped me too (although it concerns JBoss MQ, not JBoss Messaging):
In the JBoss deploy dir you need a <xxx>-destinations-service.xml descriptor with the following contents:
<?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=<your queue name here without the "queue/" prefix>" xmbean-dd="xmdesc/Queue-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends> <depends>jboss.messaging:service=PostOffice</depends> </mbean> </server>
For another example see deploy/messaging/destinations-service.xml