Thursday, March 26, 2015

Export and Import SOA B2B repository

In this article i'm going to cover on how to export a SOA B2B repository and import the same into a different environment. It will be useful when you would like to move the B2B repository between non production and production environments.

Exporting B2B repository
The b2bexport utility exports metadata from the Oracle B2B repository. If no options are specified then the entire repository is exported.

Step 1. Set SOA environment by running setDomainEnv.sh
Step 2. Make sure hostname and jndi name are correct in jndi properties files
Step 3. Execute command => ant -f ant-b2b-util.xml b2bexport -Dexportfile="{path to export folder}"
example : ant -f ant-b2b-util.xml b2bexport -Dexportfile="oracle/soa/fmw/b2brepo.zip"

Importing B2B repository
The b2bimport utility imports the B2B metadata ZIP file to the repository. Basic validation is performed, but it is not a complete validation as with deployment validation. No data is overwritten unless you use the overwrite option.

Step 1. scp "b2brepo.zip" to the environment you would like to import
Step 2. Set SOA environment by running setDomainEnv.sh
Step 2. Make sure hostname and jndi name are correct in jndi properties files
Step 3. Execute command => ant -f ant-b2b-util.xml b2bimport -Dlocalfile="{path to zip folder}"
example ant -f ant-b2b-util.xml b2bimport -Dlocalfile=true -Dexportfile="/oracle/soa/fmw/b2brepo.zip"
Step 4. Login to B2B console and for each partner save, validate and deploy partner agreements



No comments:

Post a Comment