Wednesday, April 21, 2010

Deploy JCA BRM Adapter and Create Connection Factory

This post helps in deploying the JCA BRM Adapter and Creating the connection factory in Oracle Application Server.

Deploy JCA BRM Adapter

1. Stop Application Server.

Edit application.xml file as shown below.

<import-shared-library name="oracle.bpel.common"/> tag

inside <imported-shared-libraries> tag into the following file.

<SOA_HOME>/j2ee/oc4j_soa/config/application.xml.

After adding into the application.xml it will look like this.

<!-- Comment this if you don't want to access OracleAS JMS via
the JCA framework
-->
<resource-provider class="com.evermind.server.jms.Oc4jResourceProvider"
name="oc4jjms">
<description>oc4j-jms loop back resource provider</description>
<property name="dummy" value="dummy"/>
</resource-provider>
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>

</orion-application>

2. Start Application Server:

Without this entry BRM Adapter installation will get failed. But after successful installation of BRM adapter we have to remove this entry or else none of the BPEL or ESB processes will get loaded.

3. Deploy using Application Server Control

i) Open the AS main page, and navigate to Application Server Control (http://hostname:port/)
ii) Select the instance oc4j_soa (container where the application or AIA is running).
iii) Select Application to see the list of deployed applications
iv) Click on deploy to deploy the BRM Adapter
v) Select Adapter RAR file (OracleBRMJCA15Adapter.rar) get this rar file from BRM Administrator.














vi) Specify a valid name (name should not contain spaces, special characters etc) then click on next.















vii) Click on Deploy, optionally you can save the Deployment plan by clicking "Save Deployment Plan" and specifying a path for the .dat file.
















viii) Click Return, Once the adapter is deployed successfully.


Create Private Connection Factory


1) Click on create to create the connection factory.












2) Click on Continue









3) Set JNDI location to eis/BRM and check Use Private Connection Pool. Also provide the BRM server details(Connection String).
















4) Click Finish

BRM Adapter Post Installation Tasks

1) Stop Application Server and remove entry as below from application.xml

<SOA_HOME>/j2ee/oc4j_soa/config/application.xml file

<import-shared-library name="oracle.bpel.common"/>

2) Add below highlighted entry in oc4j-ra.xml of BRMAdapter which can be found at following location.

<SOA_HOME>/j2ee/oc4j_soa/application-deployments/default/BRMAdapter.

After adding into the oc4j-ra.xml it should look as shown below

<connector name="BRMAdapter" path="BRMAdapter.rar">
</connector>

<oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd" schema-major-version="10" schema-minor-version="0" >
<imported-shared-libraries>
<import-shared-library name="oracle.bpel.common"/>
</imported-shared-libraries>
<connector-factory location="eis/BRM" connector-name="BRMAdapter">
<config-property name="ConnectionString" value="ip hostname 12006"/>
<config-property name="DBNumber" value="1"/>
<config-property name="PoidID" value="1"/>
<config-property name="ServiceType" value="/service/pcm_client"/>
<config-property name="LoginType" value="1"/>
<config-property name="UserName" value="root.0.0.0.1"/>
<config-property name="Password" value="&aes|08|0D5E11BFDD97D2769D9B0DBFBD1BBF7E5D40C305EDF3D77DF111AAB8F781E92122"/>
<config-property name="InputValidation" value="false"/>
<config-property name="OutputValidation" value="false"/>
<connection-pooling use="private">
<property name="waitTimeout" value="300" />
<property name="scheme" value="fixed_wait" />
<property name="maxConnections" value="50" />
<property name="minConnections" value="0" />
</connection-pooling>
<security-config use="none">
</security-config>
<connectionfactory-interface>oracle.tip.adapter.api.OracleConnectionFactory</connectionfactory-interface>
</connector-factory>
</oc4j-connector-factories>

3) Start the server again

No comments:

Post a Comment