0 Replies Latest reply on Dec 27, 2008 8:05 AM by Celso Gomes Barreto Junior

    Integrate entities of different applications

    Celso Gomes Barreto Junior Newbie

      Hi,

      I have two entities mapped in two different applications.

      Let's s say the fist entity is Company in the application "Company Management", which manages companies and information about them (size, address, associates, subsidiaries among others). The second entity is Risk in the application "Risk Management", which manages the risk of credit of a given Company. Both applications are implemented with EJB.

      Conceptually, Company has a one-to-one relationship with Risk. Do I have to package both entities at the same ejb-jar, under the same persistent unit in order to map the relationship between them?

      What are the other ways to integrate these two applications, supposing that EJB is used on both applications?

      Thanks in advance,
      Celso