Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] LOB streaming

To get the JDBC connection from an EntityManager see,

http://wiki.eclipse.org/EclipseLink/Examples/JPA/EMAPI#Getting_a_JDBC_Connection_from_an_EntityManager

You can also use JTA or Spring.


stefan.reinhold wrote:
> 
> I filed an enhancement request:
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=330538>.
> 
> For now I will go with the direct-JDBC approach.
> 
> Since we got a JavaSE application I still have to find out how to couple
> the JPA store and the JDBC store in one transaction. But that's another
> story...
> 
> Thanks for the information,
> Stefan
> 
>> Please log an enhancement request for this.
>>
>> You might be able to map the blob using a Converter in EclipseLink, and
>> convert the JDBC Blob to a Reader of some sort.  You will also need to
>> ensure you use exclusive connections on your EclipseLink session to hold
> the
>> JDBC connection for the duration of the EntityManager.
>>
> 
> 


-----
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 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/LOB-streaming-tp30226466p30297131.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top