Hi Jens,

using the latest hibernate feature provided by Karaf, it should work fine.

Especially, in combination with Aries JPA (how deals with the EntityManager as a service), it should be OK ;)

Regards
JB

On 05/06/2015 05:43 AM, Jens J Parappallil wrote:
Hi,

I am planning to integrate hibernate in my project, I have many bundles
which has entity classes present ( and exported ) . I am planning to
have a core bundle which holds the hibernate session factory etc and
manages the persistence stuff.

I am thinking how this works out in an OSGi environment where the
bundles ( having entity classes ) can come and go. The hibernate session
factory is a singleton , to be created ones and used. Can it wok with
annotated entities coming and going ?

This is more of a hibernate question , but any of you guys have
envisioned such a usage pattern and made it work ?

Thanks

Jens



DISCLAIMER: "The information in this e-mail and any attachment is
intended only for the person to whom it is addressed and may contain
confidential and/or privileged material. If you have received this
e-mail in error, kindly contact the sender and destroy all copies of the
original communication. IBS makes no warranty, express or implied, nor
guarantees the accuracy, adequacy or completeness of the information
contained in this email or any attachment and is not liable for any
errors, defects, omissions, viruses or for resultant loss or damage, if
any, direct or indirect."

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to