Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] eclipselink-users Digest, Vol 18, Issue 43

The issue is that JBoss does not allow compound name JNDI lookup, and
EclipseLink defaults to this.

You can change EclipseLink to use string lookup using a SessionCustomizer
and the JNDIConnector,

((JNDIConnector)session.getDatabaseLogin().getConnector()).setLookupType(JNDIConnector.STRING_LOOKUP);

But this should either work by default, or be easier to configure, so please
log a bug for this.



Yang, Daoqi (D.) wrote:
> 
> I have tried  in persistence.xml several other ways:
> <jta-data-source>java:/jpaTestJtaDS</jta-data-source>
> 
> And 
>  <jta-data-source>jpaTestJtaDS</jta-data-source> 
> 
> I still got the same errors. But I will do more testing tonight.
> Notice that I have tried straightforward JNDI look up, which works fine.
> 
> InitialContext ctx = New InitialContect();
> DataSource ds = (DataSource) ctx.lookup(“java:jpaTestJtaDS”);
> 
> Hibernate JPA works also.
> 
> Any other suggestions? Thanks a lot.
> 
> 
> 
> Regards,
> Daoqi  Yang
> Application Technology Architect
> Ford Java Center of Excellence, E1F001 iTek
> dyang11@xxxxxxxx, 313-206-3960
> 
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/RE%3A-eclipselink-users-Digest%2C-Vol-18%2C-Issue-43-tp22164183p22181050.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top