Container Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Container Instantiation

(tick) ContainerFactory.createContainer("glassfish3x"...)

(tick) <cargo containerId="glassfish3x".../>

(tick) <containerId>glassfish3x</containerId>

 

Local Container

(tick)

(tick)

(tick)

 

Container Classpath

(tick)

(tick)

(tick)

 

Container Start

(tick)

(tick)

(tick)

 

Container Stop

(tick)

(tick)

(tick)

 

Container Timeout

(tick)

(tick)

(tick)

 

Embedded Container

(error)

(error)

(error)

 

Installed Container

(tick) o.c.c.c.glassfish.GlassFish3xInstalledLocalContainer

(tick)

(tick)

 

   Passing system properties

(tick)

(tick)

(tick)

 

   Installer

(tick)

(tick)

(tick)

 

Remote Container

(tick) o.c.c.c.glassfish.GlassFish3xRemoteContainer

(tick)

(tick)

 

Configuration Features

Deployer Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Installed Deployer

(tick) o.c.c.c.glassfish.GlassFish3xInstalledLocalDeployer

(tick)

(tick)

 

Embedded Deployer

(error)

(error)

(error)

 

Remote Deployer

(tick) o.c.c.c.glassfish.GlassFish3xRemoteDeployer

(tick)

(tick)

 

Adding arguments to the Deployer

The GlassFish installed deployer allows for additional deployment and undeployment arguments by adding properties prefixed with GlassFishPropertySet.DEPLOY_ARG_PREFIX and GlassFishPropertySet.UNDEPLOY_ARG_PREFIX respectively followed by a number starting at 1.

Other Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Debugging

(tick)

(tick)

(tick)

 

Supported Configuration properties

The tables below list both the general configuration properties as well as the container-specific ones.

Standalone Local Configuration Properties

For installed container o.c.c.c.glassfish.GlassFish3xInstalledLocalContainer

Property name

Java Property

Supported?

Default value

Javadoc

cargo.glassfish.admin.port

GlassFishPropertySet.ADMIN_PORT

(tick)

4848

(green star)

cargo.glassfish.domain.debug

GlassFishPropertySet.DEBUG_MODE

(tick)

false

(green star)

cargo.glassfish.domain.jmxPort

GlassFishPropertySet.JMX_ADMIN_PORT

(tick)

8686

(green star)

cargo.glassfish.domain.name

GlassFishPropertySet.DOMAIN_NAME

(tick)

cargo-domain

(green star)

cargo.glassfish.http.ssl.port

GlassFishPropertySet.HTTPS_PORT

(tick)

8181

(green star)

cargo.glassfish.java.debugger.port

GlassFishPropertySet.DEBUGGER_PORT

(tick)

9009

(green star)

cargo.glassfish.jms.port

GlassFishPropertySet.JMS_PORT

(tick)

7676

(green star)

cargo.glassfish.orb.listener.port

GlassFishPropertySet.IIOP_PORT

(tick)

3700

(green star)

cargo.glassfish.orb.mutualauth.port

GlassFishPropertySet.IIOP_MUTUAL_AUTH_PORT

(tick)

3920

(green star)

cargo.glassfish.orb.ssl.port

GlassFishPropertySet.IIOPS_PORT

(tick)

3820

(green star)

cargo.glassfish.osgi.shell.telnet.port

GlassFishPropertySet.OSGI_SHELL_PORT

(tick)

6666

(green star)

cargo.glassfish.portbase

GlassFishPropertySet.PORT_BASE

(tick)

N/A

(green star)

cargo.glassfish.removeDefaultDatasource

GlassFishPropertySet.REMOVE_DEFAULT_DATASOURCE

(tick)

true

(green star)

cargo.hostname

GeneralPropertySet.HOSTNAME

(tick)

localhost

(green star)

cargo.java.home

GeneralPropertySet.JAVA_HOME

(tick)

JAVA_HOME version 6 or newer
 
Due to incompatibilities with its OSGi environment, GlassFish 3.x doesn't run on Java 8 and above

(green star)

cargo.jvmargs

GeneralPropertySet.JVMARGS

(tick)

N/A

(green star)

cargo.logging

GeneralPropertySet.LOGGING

(error)

medium

 

cargo.port.offset

GeneralPropertySet.PORT_OFFSET

(tick)

0

(green star)

cargo.process.spawn

GeneralPropertySet.SPAWN_PROCESS

(tick)

false

(green star)

cargo.protocol

GeneralPropertySet.PROTOCOL

(error)

http

 

cargo.remote.password

RemotePropertySet.PASSWORD

(tick)

adminadmin

(green star)

cargo.remote.username

RemotePropertySet.USERNAME

(tick)

admin

(green star)

cargo.runtime.args

GeneralPropertySet.RUNTIME_ARGS

(tick)

N/A

(green star)

cargo.servlet.port

ServletPropertySet.PORT

(tick)

8080

(green star)

cargo.servlet.users

ServletPropertySet.USERS

(error)

N/A

 

cargo.standalone.ignoreNonExistingProperties

GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES

(tick)

N/A

(green star)

cargo.start.jvmargs

GeneralPropertySet.START_JVMARGS

(tick)

N/A

(green star)

Datasource and Resource configuration

In addition to the forementioned properties, this container configuration can also set up datasources and/or resources.

For more details, please read: DataSource and Resource Support.

Existing Local Configuration Properties

For installed container o.c.c.c.glassfish.GlassFish3xInstalledLocalContainer

Runtime Configuration Properties

Before using the GlassFish remote deployer, please read: JSR88

For remote container o.c.c.c.glassfish.GlassFish3xRemoteContainer

Tested On

This container is automatically tested by the Continous Integration system every time there is a code change.
The server used for tests is downloaded from: https://repo.maven.apache.org/maven2/org/glassfish/main/distributions/glassfish/3.1.2.2/glassfish-3.1.2.2.zip

Copyright 2004-2024. All rights reserved unless otherwise noted.
Click here to read our privacy and cookie policy