1 Reply Latest reply on Mar 21, 2008 9:16 AM by Kazuhisa Ichikawa

    JMS Topic deployed with WAR

    Michael Bauer Newbie

      I have a WAR file that uses a JMS topic in it. I would like to know if there was some way to put the JMS definitions file in the WAR. Right now I am deploying it in jbossmq-destinations-service.xml located in my /deploy directory. Having it deployed with the WAR would ease the deployment and make one compact bundle.

        • 1. Re: JMS Topic deployed with WAR
          Kazuhisa Ichikawa Newbie

          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.