[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-23 Thread chenww
U can use ejb3unit framework or other good one for testing. No JNDI can be accessed uness u have a container. U can try set everything in persistence properties instead of providing JNDI data source name for creating EMF. View the original post :

[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-22 Thread rcarmichael
waynebaylor wrote : JNDI names with the java:/ prefix are only visible from within the same JVM. you'll have to bind your persistence unit to a global JNDI name to get at it from outside the app. server Wow, I had no idea - I should have known that. Thanks a bunch for the tip. - Ryan View the

[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-20 Thread rcarmichael
By the way you'll notice my datasource name switches between MyDS and CobraShadowDS, I was trying to change the name to make it simpler but I missed a spot, sorry :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138151#4138151 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Datasource not bound doing JPA outside of container

2008-03-20 Thread waynebaylor
JNDI names with the java:/ prefix are only visible from within the same JVM. you'll have to bind your persistence unit to a global JNDI name to get at it from outside the app. server View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138211#4138211 Reply to the