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.
I am trying to get the mysql datasource from servlet. I have configured the datasource in mysql-ds.xml as follows:
Then, I configured web.xml and jboss-web.xml as follows:
In servlet, I am trying to get the datasource as follows:
But I am getting the followin exception:
Please help on it. And alos, I have another doubt, when will the objects are registered with JNDI. During deployment time, will the jboss app. server register the objects with JNDI on referring web.xml and ejb-jar.xml? [ January 03, 2009: Message edited by: Mike Thomson ]