This content has been marked as final.
Show 2 replies
-
1. Re: how to add queue persistent in jbossmq-destination-servi
genman Dec 11, 2004 12:45 AM (in response to zhangjs)Create the queue in a jboss-service.xml file and deploy it.
-
2. Re: how to add queue persistent in jbossmq-destination-servi
craig1980 Dec 11, 2004 4:14 AM (in response to zhangjs)Hi; you can create a file .sar; in this file you will have a directory META-INF in wich you can insert an xml file: jboss-service.xml; in this xml file you should write a similar thing:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd"> <server> <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=myDurableQueue"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends> </mbean> </server>
You must insert this .sar file in the ${JBOSS_HOME}/server/${SERVER_INSTANCE}/deploy directory and then you must startup JBoss