users@glassfish.java.net

Re: GlassFish and Container

From: Alexis Moussine-Pouchkine <alexis.moussine-pouchkine_at_oracle.com>
Date: Wed, 10 Nov 2010 22:43:29 +0100

On 10 nov. 2010, at 20:26, forums_at_java.net wrote:

> Hi,
>
> I have some questions about glassfish and container.
>
> 1. Are all container initialized by starting glassfish? I read that glassfish
> only activates container that are relevant for the started application. Or
> start GF the container at first use?

They are lazy-loaded. You only pay for what you use.

> 2. What is the appication client container? is it like jvm on client side or
> is it an extra applicatoin that is started?

The ACC is defined by the Java EE specification. It allows for (remote) client code to run in a container.
Starting with Java EE this has the benefit of being able to inject resources in addition to propagate security context, etc.

> 3. How does glassfish know which container, services ... it must active
> / start?

It's smart! :)
It depends on the artifacts you deploy. A WAR file will require the web container for instance, for JARs it decides based on deployment descriptors whether it's an EJB, a library or an ACC archive. Sniffers are responsible for this logic.
There is also the special case of OSGi bundles that can be deployed using "asadmin deploy --type osgi" to explicitly target the OSGi runtime.
In any case, GlassFish is auto-adaptative and there is no need to cut a "profile" upfront with a specific set of features.

> 4.Is there any possibility to import and export glassfish configurations to
> use it on a second serverī?

asadmin backup-domain
asadmin restore-domain

cheers,
-Alexis


> Thanks
>
>
> --
>
> [Message sent by forum member 'krone']
>
> View Post: http://forums.java.net/node/715526
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>