The newer versions of Hibernate are definitely more OSGi-friendly, so I
would start there if you are "green-fielding" your project and have that
opportunity.


On Tue, May 5, 2015 at 11:58 PM Jens J Parappallil <
jens.parappal...@ibsplc.com> 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."
>

Reply via email to