0 Replies Latest reply on Sep 9, 2013 7:25 AM by didka

    OSGI bundle and EJB module in EAR sharing common jars

    didka

      I need to place OSGI bundle and EJB module jar in single EAR.

      All interfaces of EJBs are packed in separate jar and placed to ear/lib folder.

      From OSGI bundle i need to call EJBs which are in ejb module. So I have to share interfaces jar between ejb module and osgi bundle.

      Interfaces jar is visible from EJB jar, but not from OSGI bundle.

      Could somebody help how to configure osgi manifest/application.xml to make interfaces jar visible also for osgi bundle?

       

      The only way how I made it working is placing EJBs with interfaces in single jar and making it OSGI bundle also. But what if i need to share some jar library between OSGI bundle and EJB module?  Is it possible to specify such dependencies?

       

      I use EAP 6.1.