0 Replies Latest reply on Jul 29, 2015 6:19 AM by execretor

    Persistence unit as module

    execretor

      Hello,

       

      my architecture is:

       

      - logic.ear

      - business.ear

      - business-ws.ear

       

      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:

       

       

                     user

                       |

            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?

       

      Regards,

      Lorenzo