Jndi database connection with jpa and eclipselink?

Just add the class JPAEclipseLinkSessionCustomizer to your project and configure the persistence. Xml as shown below.

Just add the class JPAEclipseLinkSessionCustomizer to your project and configure the persistence. Xml as shown below: org.eclipse.persistence.jpa. PersistenceProvider java:comp/env/jdbc/yourDs You need this workaround only for Apache Tomcat.

Set the datasource URL to "jdbc/myDs" jdbc/myDs.

This causes another exception: javax.naming. NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext. Lookup(NamingContext.

Java:770) at org.apache.naming.NamingContext. Lookup(NamingContext. Java:140) at org.apache.naming.SelectorContext.

Lookup(SelectorContext. Java:121) at javax.naming.InitialContext. Lookup(InitialContext.

Java:396) at org.eclipse.persistence.sessions.JNDIConnector. Connect(JNDIConnector. Java:110) at org.eclipse.persistence.sessions.JNDIConnector.

Connect(JNDIConnector. Java:94) – mmm... Sep 20 '10 at 13:31.

I think you need to code a workaround for the javax.naming. NamingException: This context must be accessed throught a java: URL exception as detailed at wiki.eclipse.org/EclipseLink/Examples/JP... Also see this link which debugs through the problem forums.java.net/jive/message.jspa?messag....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions