users@glassfish.java.net

Re: app scoped resources

From: <forums_at_java.net>
Date: Tue, 17 Jan 2012 21:41:50 -0600 (CST)

When the glassfish-resources.xml is bundled in the archive, the resources are
scoped.

eg: the resource by name "testingPU" is available as "java:app/testingPU".
So, the lookup of resource should be done as
'initialContext.lookup("java:app/testingPU")'

If you are using persistence.xml, please change it to refer the resource as
"java:app/testingPU"

 


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