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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to