Deploying BAM Data Control Application to WLS server

Posted by [email protected] on Oracle Blogs See other posts from Oracle Blogs or by [email protected]
Published on Mon, 19 Apr 2010 22:15:59 +0000 Indexed on 2010/04/20 0:33 UTC
Read the original article Hit count: 572

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>/EM
  • In 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 Jdev
  • Click "Invoke"
  • Click "Return"
  • Click on Operation->Save
  • Now 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>/EM
  • In 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"
  • EM1.jpg
Select Connection Type as "BAM" from the drop down
  • Enter Connection Type as to be the same as the one defined in JDev

  • EM2.jpg
  • Click 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 dialog
  • Specific 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 dialog

EM3.jpg
  • Click on "Apply"
  • Run the page page.






© Oracle Blogs or respective owner

Related posts about ADF-BAM

Related posts about ADF BAM data control prod