« Move AIA Home from one location to another | Main

Deploy using the deploy tool utility in AIA

One of the good utilities that can be used to deploy the BPEL/ESB is AIA deploy tool. In the BPEL and ESB projects that we create, we use the partner link locations, WSDLs and XSDs for a particular server. If we need to deploy these projects to a different server, then we need to change the locations of the WSDLs and XSDs everytime.

Instead of doing it manually, we can use AIA Deploy tool. This utility has a tokenizer which will tokenize and change the URLs accordingly in the entire project and generates the build.xml (incase of BPEL) and deploymentplan.xml (incase of ESB). We can then run the 'ant' tool to deploy our processes to the server.

The DeployTool is located in $AIA_HOME/util. Here are the steps to use it.

1. There is a file called Tokenizer.properties which we need to populate the process directory (directory of the BPEL/ESB project). Ensure the process directory has the read/write permissions. Update the Tokenizer.properties with the following properties:

a) home.dir1 -> enter the directory of the process to be deployed.
eg: home.dir1=/product/example/JMSAdapterServices/MySample

b) ESB_COPY_FOLDER =/product/AIA_HOME/util/DeployTool/EsbCopy

c) BPEL_COPY_PATH=product/AIA_HOME/util/DeployTool/BpelCopy

2. Run the command to deploy:
$ ant runesb -DTokenizerPropsFilePath=/product/AIA_HOME/util/DeployTool/Tokenizer.properties

$ ant runbpel -DTokenizerPropsFilePath=/product/AIA_HOME/util/DeployTool/Tokenizer.properties

Note: Deploy tool will only create the deployment plan for ESB. It does NOT deploy the process. Once the deployment plan is generated, goto the ESB directory and run the ant tool to deploy the process.

4. Goto $AIA_HOME/bin and source the AIA environment file - aiaenv.sh. This will source all the environment variables. Then run "ant" to deploy the process.

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mt/mt-tb.cgi/14308

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on September 29, 2009 11:06 PM.

The previous post in this blog was Move AIA Home from one location to another.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type and Oracle