You can do this by using a service archive (a jar that ends with '.sar' suffix).
The contents of the .sar typically would be:
your.war
META-INF/jboss-service.xml
Within the jboss-service.xml, you can define the destination mbean for your topic (just as
in your jbossmq-destinations-service.xml).
Deploy/undeploy the .sar and you will have your war and topic deployed/undeployed at the
same time.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138274#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...