Script files are especially useful when you make changes to the sources and need to generate a J2EE application, assemble a J2EE application, or deploy a J2EE application numerous times with little or no change in the descriptor files.
They are also suitable when these procedures will be automated.
With the script files you can:
· Generate J2EE component
· Assemble an J2EE application
· Deploy a J2EE application
You must have
· The required XML files
· The resources that this XML files refer to.
Use the J2EEgenerator script file located in the usr/sap/<SID>/<INSTANCE_NAME>/j2ee/deploying directory. You can use it to generate more than one J2EE components simultaneously.
Start the J2EEgenerator script file with the following command line:
J2EEgenerator <XML-file> [LOG-file]
Where:
· <XML-file> is the path to the specific XML file that J2EEgenerator uses to assemble the components. For more information about the structure of this XML file, see j2ee-components-generator.dtd.
· [LOG-file] is the file where all log messages will be stored. If this argument is not specified, all log events are displayed in the console.
The system takes the available information, generates the required J2EE components and optionally creates a log for its activities.
Use the eargenerator script file located in usr/sap/<SID>/<INSTANCE_NAME>/j2ee/deploying directory.
Start the eargenerator script file with the following command line:
eargenerator <XML-file> [<LOG-file>]
Where:
· <XML-file> – the path to the specific XML file that the eargenerator uses to create an EAR file. For more information about the structure of this XML file, see ear-generator.dtd.
· [LOG-file] – the file where all log messages will be stored. If this argument is not specified, all log events are displayed in the console.
The archive is to be created in the same directory where the XML file is situated. The name of the archive is the same as specified in the <XML-file>.
The system assembles the EAR and optionally creates log file.
Use the deploymanager script file, located in usr/sap/<SID>/<INSTANCE_NAME>/j2ee/deploying directory.
DeployManager <XML-file> [<Log-file>] [-remove]
Where:
· <XML-file> – the path to the specific XML file that the deploymanger script file uses. In this XML file you must specify, for example: security roles, mapping security roles to real users and the context root. For more information about the structure of this XML file, see deploy-manager-config.dtd.
· [LOG-file] – the file where all log messages will be stored. If this argument is not specified, all log events are displayed in the console.
· [-remove] – removes the application specified with <XML-file>.
The system deploys the application and optionally creates a log file.