users@glassfish.java.net

Re: You could follow either of

From: <forums_at_java.net>
Date: Mon, 4 Apr 2011 11:13:48 -0500 (CDT)

If you bundle glassfish-resources.xml along with the application, the
resources created are specific for the application ie., application scoped.

If you refer <application> element in domain.xml, <resources> configuration
will be present.

If you do not specify the "prefix" ie., "java:app" or "java:module" in the
glassfish-resources.xml that is bundled in the application, it will be
prefixed appropriately and registered in domain.xml

If you simple want to use "jdbc/myDS", it need to be a global resource ie.,
not specific to the application.

1) You should avoid bundling the glassfish-resources.xml with the
application.

2) Use "asadmin add-resources PATH_TO_glassfish-resources.xml_FILE" to create
the global resources

3) Deploy the application that refers "jdbc/myDS". It should work fine.


--
[Message sent by forum member 'jr158900']
View Post: http://forums.java.net/node/787436