how to pass user created connection to hibernate
Posted
by Mrityunjay
on Stack Overflow
See other posts from Stack Overflow
or by Mrityunjay
Published on 2010-06-05T05:06:10Z
Indexed on
2010/06/05
16:32 UTC
Read the original article
Hit count: 203
hi, is there any way, to restrict hibernate not to create connection of its own(what we define in hibernate.properties or hibernate.cfg.xml), instead i can create and pass the connection to hibernate for further processing.
The problem is that i need to set the ApplicationContext on the connection given that the i am using oracle connection. I know how to create a connection and set the applicationContext on to it.. but the problem is that i don't know how to force hibernate to use the connection that i have created.. Please help..
© Stack Overflow or respective owner