Friday, December 9, 2011

Oracle BAM ICommand by-pass credential prompts

I came across a requirement where the BAM data object must be updated with new rows recursively. For this, I created the DO XML files containing the valid layout format and data. However, while calling the icommand import script recursively from a shell script, I faced credential issues as the username/password cannot be provided dynamically everytime.

In order to overcome this issue, Oracle BAM provides a feature to configure the default credentials in the config file;

<Oracle_Middleware_Home>/Oracle_SOA1/bam/config/BAMICommandConfig.xml

Open this file and add the following entries;

<ICommand_Default_User_Name>weblogic</ICommand_Default_User_Name>
<ICommand_Default_Password>your password</ICommand_Default_Password>

This would ensure that every time the icommand script is invoked, the default credentials are picked up. Happy scripting :)

No comments:

Post a Comment