I’m currently trying to ‘port’ my Java EE 5 Application from Jboss 6 M2 to Glassfish 3.0.1
Jboss used to create my JMS Destination Queues a deployment-time thanks to the -service.xml files. I really liked this feature and I would like to find a way to do the same thing on Glassfish. Is this even possible ?
I’m not sure of the exact status with GlassFish 3.0.1 but according to these threads:
creating JMS destinations at deploy time was not supported. But these threads are pretty old and things might have changed (see below).
You can however declare them in a
sun-resources.xmlfile and pass it to theasadmin add-resourcescommand.That being said, several documents (like this one or this one) mention the deployment of application-scoped-resources defined in a
sun-resources.xmlbundled in the application (that will becomeglassfish-resources.xmlin GlassFish 3.1) as part of the deploy/undeploy of the app but: