-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Integrating existing Datasource in JPA
PostPosted: Wed Aug 11, 2010 5:05 am 
Newbie

Joined: Wed Aug 11, 2010 2:37 am
Posts: 1
I would like to integrate JPA with my existing code.

My requirment is like i would not specify jpa provider in my persistence.xml file. After deploying, the container will pick the default jpa provider. For example, if it is JBOSS, it will pick hibernate as default jpa provider, or if it is WebSphere then it will pick openjpa as default provider. So it depends on App Server that we use.

I have a service that build Datasources and Connection objects. I would like to use this service to supply Datasource and Connection for my EntityManager. I could not find any property that i can pass Datasource object or Connection object to the EntityManager.

How could pass my costomized datasource and customized connection objects to EntityManager other than default connection establishment that hibernate or openjpa creates ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.