The users (using a .NET client connected throught business-ws-ear) can request an entity from the business.ear layer and, post some elaborations, send it to the logic.ear throught a common interface (declared as module) shared by logic.ear and business.ear. The workflow is:
business web service
business ejb <----- (EntityManager) ----> SQL DB
| (shared java queue of entity objects)
logic stateless bean
All deployments must share the same persistence unit but when i declare my persistence.jar as module his persistence.xml is ignored.
How can i declare my persistence unit as shared module?