-
1. Re: connect vdb by jndi name from hibernate
rareddy Nov 16, 2015 8:33 AM (in response to prashanthi1)Use the JNDI name in the config file as defined in the data source, which is "java:/UserDS"
-
2. Re: connect vdb by jndi name from hibernate
prashanthi1 Nov 16, 2015 8:47 AM (in response to rareddy)I have tried giving the same name as in standlone.xml Ramesh, i get the same error.
-
3. Re: connect vdb by jndi name from hibernate
rareddy Nov 16, 2015 9:29 AM (in response to prashanthi1)Ok, where is your Hibernate application deployed? inside an application server? standalone JVM? What the exception saying is, wherever your application is residing it can not initialize the "naming services". Typically inside an application server, a default initial context factory is already set. If you are working in any other host environments, you need to make sure what is what this factory class is and define it at initialization of the naming service. A JNDI name is reference to an object/proxy inside a JVM, how a JNDI resolves to that object is based on that naming service.