the persistence context exists within the context of its entities. 
Without those entities it has no real meaning.
That means those entities need to be packed with the persistence context.

You might be best off restructuring your project to have a single persistence 
module containing all your entities and the persistence context, and 
referencing to that from your other modules.
That also prevents a lot of class duplication among the other modules, which 
can become a major headache when table definitions or other entity-related 
stuff changes.
As it now stands in your application you'd need to change each module 
separately, rather than change just one.
I can guarantee that sooner rather than later that'll come back to bite you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143848#4143848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143848
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to