views:

38

answers:

1

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 ?

A: 

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.xml file and pass it to the asadmin add-resources command.

That being said, several documents (like this one or this one) mention the deployment of application-scoped-resources defined in a sun-resources.xml bundled in the application (that will become glassfish-resources.xml in GlassFish 3.1) as part of the deploy/undeploy of the app but:

  • I don't know if this is relevant for 3.0.1.
  • I don't know the exact status, especially for JMS resources.
  • This would require testing.
Pascal Thivent
Thanks, I wasn't aware of the sun-resources.xml file. That's pretty much close to what I was searching for. I will try this way and keep you informed.
mourphy
After trying many ways, ear deployment with JMS-destinations creation is indeed not supported. Thanks again for this very accurate answer.
mourphy