Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- packs the application client container libraries and jar files
package-appclient
Use the package-appclient command to pack the application client container libraries and jar files into an appclient.jar file, which is created in the current working directory. The appclient.jar file provides an application client container package targeted at remote hosts that do not contain a server installation.
After copying the appclient.jar file to a remote location, unjar it to get a set of libraries and jar files in the appclient directory
After unjarring on the client machine, modify appclient_install_dir/config/asenv.conf (asenv.bat for Windows) as follows:
set AS_WEBSERVICES_LIB to appclient_install_dir/lib
set AS_IMQ_LIB to appclient_install_dir/imq/lib
set AS_INSTALL to appclient_install_dir
set AS_JAVA to your JDK 1.6 home directory
set AS_ACC_CONFIG to appclient_install_dir/config/sun-acc.xml
Modify appclient_install_dir/config/sun-acc.xml as follows:
Ensure the DOCTYPE file references appclient_install_dir/lib/dtds
Ensure that target-server address attribute references the server machine.
Ensure that target-server port attribute references the ORB port on the remote machine.
Ensure that log-service references a log file; if the user wants to put log messages to a log file.
To use the newly installed application client container, you must do the following:
Obtain the application client files for your target application, including the generated yourAppClient.jar file.
Execute the appclient utility: appclient -client yourAppClient.jar
See attributes(5) for descriptions of the following attributes:
|