Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How do i access the original database source connection

I assume you mean the JDBC Connection?

You can get it from an EclipseLink UnitOfWorkImpl using,

uow.getAccessor().getConnection()

You should first call uow.beginEarlyTransaction(), if not already in a
database transaction.



Rodrigue Lagoue Njinthe wrote:
> 
> Hi all!
> 
> i need to have access on the original database connection, is there a way
> to
> access it from eclipselink?
> 
> best
> 


-----
---
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/How-do-i-access-the-original-database-source-connection-tp21017021p21061371.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top