Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re-using an existing jdbc connection?

justin grunau

2008-07-01

Replies: Find Java Web Hosting

Author LoginPost Reply

Is it possible somehow to pass an already-existing jdbc connection (with a transaction already in progress) into OpenJPA?  Most of my application is written in OpenJPA but I have to implement a feature that involves being called with a transaction having started and with a database handle being passed in.  If I can't pass that connection into OpenJPA then I will have to write this part of the application in straight jdbc/SQL, which will involve an unfortunate duplication of logic.

Justin Grunau
Advisory Software Engineer
Software as a Service (SaaS)

IBM Software Group

IBM
Lotus Software
One Rogers Street
Cambridge, Massachusetts 02142

phone:       +1-617-693-4898 (T/L 693-4898)
fax:            +1-617-693-5748 (T/L 693-5748)
notes:        
Justin Grunau/Cambridge/IBM@Lotus
internet:      
justin_grunau@us.ibm.com

©2008 gg3721.com - Jax Systems, LLC, U.S.A.