Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Using Tomcat

FYI, I got Tomcat to work with a non-jta datasource by doing the following:

1) Compile JPAEclipseLinkSessionCustomizer and add it into persistence.xml.
2) The persistence.xml "non-jta-datasource" should refer to
"java:comp/env/jdbc/foo" not "java:comp/env/ds/OracleDS" as implied by the
documentation. (This part was very unintuitive!)
3) JPAEclipseLinkSessionCustomizer.JNDI_DATASOURCE_NAME is useless, remove
it to avoid confusion.

Please update the documentation accordingly.

Thanks,
Gili



cowwoc wrote:
> 
> http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial
> 
> search for "This context must be accessed throught a java: URL"
> 
> 1) "throught" should probably be "through"
> 2) The exception message is not clear. What does it want from me? :) I
> shouldn't have to refer to the Wiki to understand what it's trying to say.
> 3) It's not clear how to use RESOURCE_LOCAL and non-jta-data-source
> *inside* Tomcat? Developers migrating from Hibernate will be coming from
> this configuration!
> 
> I'm still trying to get this to work ;)
> 
> Gili
> 

-- 
View this message in context: http://www.nabble.com/Using-Tomcat-tp20367474p20368011.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top