Feature name
Java API
Ant tasks
Maven 3 plugin
Comment
Container Instantiation
ContainerFactory.createContainer("glassfish5x"...)
<cargo containerId="glassfish5x".../>
<containerId>glassfish5x</containerId>
Local Container
Container Classpath
Container Start
Container Stop
Container Timeout
Embedded Container
Installed Container
o.c.c.c.glassfish.GlassFish5xInstalledLocalContainer
Passing system properties
Installer
Remote Container
o.c.c.c.glassfish.GlassFish5xRemoteContainer
Standalone Local Configuration for installed container
o.c.c.c.glassfish.GlassFish5xStandaloneLocalConfiguration
Standalone Local Configuration for embedded container
Existing Local Configuration for installed container
o.c.c.c.glassfish.GlassFishExistingLocalConfiguration
Existing Local Configuration for embedded container
Runtime Configuration
o.c.c.c.glassfish.GlassFish5xRuntimeConfiguration
Static deployment of WAR
Static deployment of expanded WAR
Static deployment of EJB
Static deployment of EAR
Static deployment of RAR
Static deployment of files
Static deployment of OSGi Bundles
Installed Deployer
o.c.c.c.glassfish.GlassFish5xInstalledLocalDeployer
Embedded Deployer
Remote Deployer
o.c.c.c.glassfish.GlassFish5xRemoteDeployer
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.
GlassFishPropertySet.DEPLOY_ARG_PREFIX
GlassFishPropertySet.UNDEPLOY_ARG_PREFIX
1
Debugging
The tables below list both the general configuration properties as well as the container-specific ones.
Property name
Java Property
Supported?
Default value
Javadoc
cargo.glassfish.admin.port
GlassFishPropertySet.ADMIN_PORT
4848
cargo.glassfish.domain.debug
GlassFishPropertySet.DEBUG_MODE
false
cargo.glassfish.domain.jmxPort
GlassFishPropertySet.JMX_ADMIN_PORT
8686
cargo.glassfish.domain.name
GlassFishPropertySet.DOMAIN_NAME
cargo-domain
cargo.glassfish.http.ssl.port
GlassFishPropertySet.HTTPS_PORT
8181
cargo.glassfish.java.debugger.port
GlassFishPropertySet.DEBUGGER_PORT
9009
cargo.glassfish.jms.port
GlassFishPropertySet.JMS_PORT
7676
cargo.glassfish.orb.listener.port
GlassFishPropertySet.IIOP_PORT
3700
cargo.glassfish.orb.mutualauth.port
GlassFishPropertySet.IIOP_MUTUAL_AUTH_PORT
3920
cargo.glassfish.orb.ssl.port
GlassFishPropertySet.IIOPS_PORT
3820
cargo.glassfish.osgi.shell.telnet.port
GlassFishPropertySet.OSGI_SHELL_PORT
6666
cargo.glassfish.portbase
GlassFishPropertySet.PORT_BASE
N/A
cargo.glassfish.removeDefaultDatasource
GlassFishPropertySet.REMOVE_DEFAULT_DATASOURCE
true
cargo.hostname
GeneralPropertySet.HOSTNAME
localhost
cargo.java.home
GeneralPropertySet.JAVA_HOME
JAVA_HOME version 8 or newer
cargo.jvmargs
GeneralPropertySet.JVMARGS
cargo.logging
GeneralPropertySet.LOGGING
medium
cargo.port.offset
GeneralPropertySet.PORT_OFFSET
0
cargo.process.spawn
GeneralPropertySet.SPAWN_PROCESS
cargo.protocol
GeneralPropertySet.PROTOCOL
http
cargo.remote.password
RemotePropertySet.PASSWORD
adminadmin
cargo.remote.username
RemotePropertySet.USERNAME
admin
cargo.runtime.args
GeneralPropertySet.RUNTIME_ARGS
cargo.servlet.port
ServletPropertySet.PORT
8080
cargo.servlet.users
ServletPropertySet.USERS
cargo.standalone.ignoreNonExistingProperties
GeneralPropertySet.IGNORE_NON_EXISTING_PROPERTIES
cargo.start.jvmargs
GeneralPropertySet.START_JVMARGS
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.
Before using the GlassFish remote deployer, please read: JSR88
cargo.glassfish.target
GlassFishPropertySet.TARGET
cargo.remote.timeout
RemotePropertySet.TIMEOUT
120000
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/5.1.0/glassfish-5.1.0.zip