Deploying BAM Data Control Application to WLS server
- by [email protected]
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-15829414-1");
pageTracker._trackPageview();
} catch(err) {}
Typically we would test our ADF pages that use BAM Data control using integrated wls server (ADRS). If we have to deploy this same application to a standalone WLS we have to make sure we have the BAM server connection created in WLS.unless we do that we may face runtime errors.In Development mode of WLS(Reference)
For development-mode WebLogic Server, you can set the mode to
OVERWRITE to test user names and passwords. You can set the mode by
running setDomainEnv.cmd or setDomainEnv.sh with the following option
added to the command.
Add the following to the JAVA_PROPERTIES entry in the
<FMW_HOME>/user_projects/domains/<yourdomain>/bin/setDomainEnv.sh
file:
-Djps.app.credential.overwrite.allowed=true In Production mode of WLS
Enable MDS
Create and/or Register your MDS repository. For more details refer this Edit adf-config.xml from your application and add the following tag
<adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
<mds-config version="11.1.1.000">
<persistence-config>
<metadata-store-usages>
<metadata-store-usage default-cust-store="true" deploy-target="true" id="myRepos">
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</mds-config>
</adf-mds-config>Deploy
the application to WLS server after picking the appropriate repository
during deployment from the MDS Repository dialog that pops up
Enterprise Manager (Use these steps if using a version prior to 11gR1 PS1 release of JDeveloper)
Go to EM (http://<host>:<port>/EMIn the left pane, deployments select Application1(your application)In
the right pane, top dropdown select "System Mbean
Browser->oracle.adf.share.connections->Server:
AdminServer->Server:
AdminServer->Application:<Appname>->ADFConnections"Right pane click "Operations->CreateConnection"Enter Connection Type as "BAMConnection"Enter the connection name same as the one defined in JdevClick "Invoke"Click "Return"Click on Operation->SaveNow in the ADFConnections in the navigator, select the connection just created and enter all the configuration details.Save and run the page.
Enterprise Manager (Use these steps or the steps above if using 11gR1 PS1 or newer)
Go to EM (http://<host>:<port>/EMIn the left pane, deployments select Application1(your application)In the right pane, click on "Application Deployment" to invoke to dropdown. In that select "ADF -> Configure ADF Connections"Select Connection Type as "BAM" from the drop downEnter Connection Type as to be the same as the one defined in JDevClick on "Create Connection". This should add a new row below under "BAM Connections"Select the new connection and click on the "Edit" icon. This should bring up a dialogSpecific
appropriate values for all connection parameters - Username, password,
BAM Server Host, BAM Server Port, Webtier Server Host, Webtier Server
Port and BAM Webtier Protocol - and then click on OK to dismiss the
dialogClick on "Apply"Run the page page.