This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 ]