users@glassfish.java.net

Re: You could follow either of

From: <forums_at_java.net>
Date: Mon, 4 Apr 2011 19:39:00 -0500 (CDT)

Ah, okay.  I removed glassfish-resources.xml from WEB-INF and I  load it
programatically:

{code}glassfish.getCommandRunner().run("add-resources", <path to
glassfish-resources.xml>);{/code}

And now it works.

So the behaviour is:

1) if glassfish.resource is in WEB-INF, the DS will be bound to
java:app/jdbc/myDS

2) if glassfish.resource is loaded via asadmin (command line or
programaticaly), the DS will be bound to jdbc/myDS

Is that correct?

Thanks for your help.

Vincent


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