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 :
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
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 :
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