Oct 28th, 2010, 04:33 PM
I'm trying to build an application where several modules share the same hibernate session.
I followed a greenpages example and I created a bundle, thta held definitions of a datasource. Then I realised, that I also would need to define entitymanager in this bundle, so several modules could share the same data. After several tries I was not successfull.
Is this even possible?
Here an example:
I'd like to have two modules: invoicing and ordering. These modules should have the same entitymanager so orders can be linked to invoices etc...
Any help appreciated.