This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Probably a container specific problem ? Where did you define the resource ? Containers may choose to bind it into the JNDI based on their own standards.
Well atleast you know why it does not work now
Joined: Feb 08, 2010
I guess it is a container (i.e. weblogic) specific issue... Where did I define the resource... not 100% sure I understand the question... I mean, normally I deploy on jboss, and all you have to do on jboss is:
create a datasource file
specifiy a jndiname in the datasource file
and that's it, the datasource is ready to be used by any application running on the server. In java code you prefix the jndiname with java:
For weblogic, which I do not have available but where my code is now installed (by other guys), I had to request that a datasource was created via the GUI, using same jndiname I used on jboss.
In my code I had to remove the java: prefix.
I am not sure if when defining a datasource in weblogic I needed to do anything else? maybe map it in web.xml, weblogic.xml or other?