There is a need to turn part of the EAR (namely, war) into an OSGI package and maintain its compatibility. Glassfish 3.0.1 already has a module osgi-web-container, and I managed to deploy the standalone OSGI war.
But in the event of a war with former enterprises, this is a little difficult for me.
- What should I do with EJB calls from within the future OSGI war? Is it enough to replace
@EJBinjections with true JNDI searches? - What about APIs and libraries sharing via EAR? I could separate and regroup them, but I still have at least one jar needed for both the EAR and OSGI wars. Duplicate, do it like an OSGI package and make it accessible to the ear, somehow, put it GF domain library path?
- Any other ideas, tips that could make this hybrid work?
source
share