users@glassfish.java.net

Re: Anybody using hybrid (EE+OSGi) applications in production?

From: Sanjeeb Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 15 Oct 2010 19:16:59 +0530

On Friday 15 October 2010 07:06 PM, glassfish_at_javadesktop.org wrote:
> Hello
>
> I tried to run OSGi services in the same JVM as a web Container.
> The point is to avoid SOAP in case the applications are collocated.
>
> So we have:
> - an existing OSGi services with Felix and OPS4J PAX (and a few dependencies.)
> - a Web App which will run fine on GlassFish
>
> I tried to install our bundles in GlassFish. It breaks the GlassFish console: some errors with "Weld".
>
Can you file a bug for this?
> I tried to install the Web App in OSGi with OPS4J PAX I had "out of memory" errors. (no matter how much memory I put in Java options.)
>
> I my tried again with Karaf instead of OPS4J and with a new GlassFish version, but not yet.
>
Alternatively, just copy your bundles to domain1/autodeploy/bundles/
directory and they will get deployed automatically.

Sahoo