2 Replies Latest reply on Jun 26, 2009 6:04 AM by xmedeko

    EAR packaging

    amanmanocha

      Hi,

      Please help me understand the packaging of an ear. Here is one scenario :

      Lets say there are two modules(ModuleA and ModuleB) in the system, both modules have their own set of session beans and entity beans.
      Then there is another module (say a Facade) which makes use of session beans from both modules.


      |-------ModuleA
      Client-----Facade---
      |-------ModuleB


      The Facade is exposed as RMI endpoint the clients.
      If I package the entire application in one jar then every thing works fine but if I try to make separate jars for the two modules, I encounter a lot of problems.

      Please help me understand how packaging of an ear is done when there are multiple persistence units.
      Do I have to keep the session beans and entity beans in separate jar files?

      Thanks in advance,
      Aman