[jboss-user] [JNDI/Naming/Network] - JNDI in ejb3
design2006
do-not-reply at jboss.com
Thu Sep 4 10:51:17 EDT 2008
Dear all,
How to do a jndi to lookup a datasource in ejb3 ?
I want to lookup the datasource, grap the connection, and do something rather than using the EntityManager.
I try
lookup("java:/mysqlDS");
lookup("java:comp/env/mysqlDS");
it always gave me
javax.naming.NameNotFoundException: "something" not bound
I have a persistence.xml file in the ejb jar file, mysql-ds.xml file in the \server\default\deploy.
What i can do to make this thing work ? thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174326#4174326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174326
More information about the jboss-user
mailing list