One of the Application Integration Architecture (AIA) hidden gems is the SOA Suite / FMW deployment framework. This ANT framework can (un)deploy your WARS, SOA Composites, MDS, create JDBC Datasources & JMS Resources like Queues, Topics, Connection Factories , Deploy AQ, JMS, DB Resource Adapters and restart your WebLogic Server and can even do more things like update your WSDL. create users etc.
Before you install AIA you should know this is not license free, but this can save you a lot of money and helps you to reduce the human factor in your deployments.
This deployment framework is part of a bigger AIA plan and is based on Oracle Best practices, but this can also be used for environments where they don't work with AIA.
To use this deployment framework you should have a running SOA Suite & installed AIA on a machine. For installation instructions see my Whitehorses blog.
And here is the official documentation of this deployment framework.
The first step is to add your WebLogic ( SOA Suite ) Server and Database connections details to the AIAInstallProperties.xml file, this located in your AIA instance folder, in my case (
Add your Database connections under /properties/participatingapplications/AIAEmployeeSync/db
AIAEmployeeSync is my demo application.
Add your WebLogic connections under /properties/pips/AIAEmployeeSync/server
In my case the password are already encrypted, but you need to encrypt them again. So set the isencrypted element to false and replace the encrypted password with their plain text values.
open a command windows
ant -f createStore.xml generate -DPropertiesFile=%AIA_INSTANCE%\config\AIAInstallProperties.xml
This will encrypt all the password fields.
Now we can take a look at the deployment plan. Here you see for example the scott Datasource which we just configured in the AIAInstallProperties xml file and it has also a reference to the WebLogic server where it needs to deployed to. With ManagedServer you can reboot the WebLogic server and UpdateMetadata does the necessary MDS updates.
You can also make an undeployment plan. This is nice because you can re-test the whole deployment on your test or acceptance server.
I made a handy start script to start this deployment
Also for the undeploy
We are reading to start the deployment.
open a command window and go the location of your ANT xml's
ant -f deployEmployeeSync.xml
And if everything is Ok you should have everything installed & deployed, but you can always check your deployment log for errors.
When you look for your Resource Adapter definitions then you should look for AIA_XXX