Assemble the necessary client components.
The client JAR file is created.
Assemble the EJB components that are to be accessed by the client.
The EJB JAR file is created.
Assemble the client and EJB JAR files together in an EAR.
An EAR file contains all the components of the application.
Deploy the application.
Instructions are contained in To Deploy an Application or Module.
If you are using the appclient script to run the application client, retrieve the client files.
The client JAR file contains the ties and necessary classes for the application client. In this release of GlassFish Server, the client JAR file is made up of multiple files. Use either deploy --retrieve or get-client-stubs, but not both.
If Java Web Start is enabled for the application client, use the Launch link on the Application Client Modules.
Run an application client by using the appclient script.
The appclient script is located in the as-install/bin directory.
If you are using the default server instance, the only required option is -client, which points to the client JAR file. For example:
appclient -client converterClient.jar
The -xml parameter, which specifies the location of the sun-acc.xml file, is also required if you are not using the default instance.
For more detailed information about Java Web Start, see Chapter 11, Developing Java Clients, in Oracle GlassFish Server 3.0.1 Application Development Guide.
For more detailed information about the appclient script, see appclient(1M).