This content has been marked as final.
Show 2 replies
-
1. Re: Configuring JMS queue on JBoss AS 5
kapitanpetko May 18, 2009 3:32 AM (in response to hattifnat)
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.HTH
-
2. Re: Configuring JMS queue on JBoss AS 5
hattifnat May 18, 2009 7:54 AM (in response to hattifnat)Ah, OK, thanks a lot. For future reference:
this post helped me too (although it concerns JBoss MQ, not JBoss Messaging):http://www.seamframework.org/Community/ConfiguringJmsInComponentsxmlForEmbeddedJboss
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