When you are working with Web projects in Rational Business Developer, you create EGL deployment descriptor (.egldd) files to specify how you want the pages and services deployed on an application server. When your application is ready to test on the server, you can perform the deployment by right-clicking on the .egldd file in the Project Explorer and clicking on menu option Deploy EGL Descriptor.
As your application development process matures and involves more developers, you may want to automate the process to ensure consistency of your deployment. Suppose you have defined your web application configuration in file MyProjectDeploymentDescriptor.egldd located in project folder MyProject\EGLSource. (See the Information Center for more information on specifying a web application server in your deployment descriptor.) Did you know there is a simple way to deploy this configuration using a command file? The deployment operation runs "headless" under the RBD EGLCMD processor running in your workspace.
To see an example of how this works:
setRBDEnvironment.cmd - identifies workspace and RDB jar files for running IDE in headless mode
deployFromCMDFile.cmd - calls RBD EGLCMD to run deploy CMD file
deployCMDFile.xml - example of deploy CMD file
- Edit setRBDEnvironment.cmd to change the variable values to match your RBD configuration
- Import deployCMDFile.xml into your workspace. Edit the file to include one deploy command for each egldd file you want to deploy. The CMD file content will look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE EGLCOMMANDS PUBLIC "-//IBM//DTD EGLCOMMANDS 5.1//EN" "">
- Assuming the full resource name of the CMD file in your workspace is MyProject\deployCMDFile.xml, enter the following command from a window prompt to deploy the configuration described in the egldd file:
Deploying EGL applications using command files provides an automated, repeatable process.