RSS Feeds


Pages and Blog posts
Mailing list

Users of GlassFish 6.x onwards should be aware that, as a result of the move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all implemented APIs has changed from javax.* to jakarta.*. This will almost certainly require code changes to enable applications to migrate to GlassFish 6.x and later.

Container Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Container Instantiation

(tick) ContainerFactory.createContainer("glassfish7x"...)

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

(tick) <containerId>glassfish7x</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.GlassFish7xInstalledLocalContainer

(tick)

(tick)

 

   Passing system properties

(tick)

(tick)

(tick)

 

   Installer

(tick)

(tick)

(tick)

 

Remote Container

(error)

(error)

(error)

 

Configuration Features

Deployer Features

Feature name

Java API

Ant tasks

Maven 3 plugin

Comment

Installed Deployer

(tick) o.c.c.c.glassfish.GlassFish7xInstalledLocalDeployer

(tick)

(tick)

 

Embedded Deployer

(error)

(error)

(error)

 

Remote Deployer

(error)

(error)

(error)

 

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.

The GlassFish 6.x onwards containers do have any remote deployers, as GlassFish 6.0 onwards lack JSR-88 support.

Please follow the remote deployment instructions for GlassFish 6.x onwards.

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.GlassFish7xInstalledLocalContainer

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 11 or newer

(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

(tick)

http

(green star)

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

(tick)

N/A

(green star)

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.GlassFish7xInstalledLocalContainer

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/7.0.13/glassfish-7.0.13.zip

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