Deployment in Oracle SOA Suite and in Oracle BPM Suite

Post on 05-Dec-2014

3,596 views 1 download

description

Deployment in a Service oriented environment is slightly more complicated because the endpoints and other settings need to be changed when promoting the components through QA, Staging and production systems. The Oracle SOA suite offers different mechanisms for different components: Configuration plans for SCA components and customization files for the OSB. You can either deploy an artifact manually, or script the deployment using ant or WLST. This paper will discuss the different settings you can adjust in configuration plans and customization files, a way of organizing these files in different situations and the use of scripting versus manual deployment.

transcript

1  |  x  1  |  20  

Deployment in Oracle SOA Suite and in Oracle BPM Suite

Lonneke Dikmans

November 2012 | Nuremberg

2  |  x  2  |  20  

Agenda

What is the problem ●  Different environment (D, T, A, P) ●  Component types ●  Configuration and resources

Solution ●  Scripting, Development tool, Consoles ●  Configuration ●  Shared resources

Demo ●  JDeveloper ●  Console ●  Script

3  |  x  3  |  20  

What is the problem? | Environments - D

4  |  x  4  |  20  

What is the problem? | Environments - T

5  |  x  5  |  20  

What is the problem? | Environments – A & P

6  |  x  6  |  20  

What is the problem? | Component types

7  |  x  7  |  20  

What is the problem? | Configuration

Configuration and resources ●  Endpoints ●  Resources (JMS, JDBC, WSDL, XSLT) ●  Schema validation ●  Target (managed server) ●  Security (Policies, account names) ●  Timer and/or retry settings ●  ....

8  |  x  8  |  20  

Agenda

What is the problem ●  Different environment (D, T, A, P) ●  Component types ●  Configuration and resources

Solution ●  Scripting, JDeveloper, consoles ●  Configuration plans, customization files

Demo ●  JDeveloper ●  Console ●  Script

9  |  x  9  |  20  

Solution | Steps to deployment

Deployment steps 1.  Create a package (jar, ear) 2.  Add configuration for the target environment 3.  Deploy the package (jar, ear, sar)

10  |  x  10  |  20  

Solution | Three ways to deploy

Development tool ●  Development environment ●  JDeveloper for Weblogic Server, SOA Suite, BPM Suite ●  Oracle Eclipse Pack for Weblogic Server, Oracle Service Bus ●  Process editor (Web based) for BPM suite ●  Oracle service bus console to develop OSB flows

Console ●  Development environment, Test environment ●  Weblogic console for JEE ●  Enterprise manager for SCA composites ●  Oracle service bus console for OSB components and resources

11  |  x  11  |  20  

Solution | Three ways to deploy (2)

Scripting ●  WLST for WebLogic Server and SOA Suite, OSB ●  Maven for JEE ●  Ant for JEE, SOA Suite, BPM suite (and to call OSB scripts)

or……Combination of the three options ●  Script creating of package, manual deployment ●  Manually create the package, script deployment ●  Script packaging, deployment, configure manually ●  …..

12  |  x  12  |  20  

Solution | Configuration

JEE ●  Deployment descriptors: •  Web.xml, Weblogic-web.xml, application.xml, …

SOA Suite ●  Configuration plan

OSB ●  Customization file

13  |  x  13  |  20  

Solution | Configuration (2)

Configuration plan snippet <?xml version="1.0" encoding="UTF-8"?> <SOAConfigPlan xmlns:jca="http://platform.integration.oracle/blocks/adapter/fw/

metadata" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy" xmlns:edl="http://schemas.oracle.com/events/edl" xmlns="http://schemas.oracle.com/soa/configplan">

<composite name="BS_00_01_VerwerkenDocumentaanvragen_composite"> <import> <searchReplace>

<search>oramds:/apps/overijssel/as/ZaakService-1.3.wsdl</search> <replace>http://srvapp51:8011/ZaakService-1.3/ZaakService-1.3?wsdl</

replace>

</searchReplace> …..

14  |  x  14  |  20  

Solution | Configuration (3)

OSB Customization file snippet <?xml version="1.0" encoding="UTF-8"?><cus:Customizations

xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes"> <cus:customization xsi:type="cus:EnvValueCustomizationType"> <cus:description/> <cus:envValueAssignments> <xt:envValueType>Service URI Weight</xt:envValueType> <xt:location>0</xt:location> <xt:owner> <xt:type>BusinessService</xt:type> <xt:path>CRM_StUFRelatieService/business/CRM_PostcodeService_BS</xt:path> </xt:owner> <xt:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">0</xt:value> </cus:envValueAssignments> <cus:envValueAssignments> <xt:envValueType>Service URI</xt:envValueType> <xt:location>0</xt:location> <xt:owner> <xt:type>BusinessService</xt:type> <xt:path>CRM_StUFRelatieService/business/CRM_PostcodeService_BS</xt:path> </xt:owner>

……

15  |  x  15  |  20  

Solution | Shared resources

JEE ●  Libraries (Ear, war) ●  Connection pools, resource adapters

SOA Suite & BPM Suite ●  MDS ●  Resource adapters

OSB ●  Resources (XSD, WSDL, XSLT, Xquery) -> Projects ●  System accounts -> System account

16  |  x  16  |  20  

Solution | Tips

Configuration ●  Combine Configuration plans for different Composites ●  Export Customization file from OSB ●  Use OSB to connect to external service to minimize

configuration of endpoints

Shared resources ●  Use MDS for SOA Suite and BPM Suite ●  Use designated projects in OSB for shared resources

17  |  x  17  |  20  

Agenda

What is the problem ●  Different environment (D, T, A, P) ●  Component types ●  Resources

Solution ●  Scripting, JDeveloper, consoles ●  Configuration plans, customization files

Demo ●  JDeveloper ●  Console ●  Script

18  |  x  18  |  20  

Demo

SOA Suite ●  Deploy a BPEL manually ●  Deploy a BPEL with ant ●  Deploy a BPEL with WLST

19  |  x  19  |  20  

Deployment Summary

Server   Type   Scrip7ng   Console   Development  tool  

WLS  (JEE)   War,  Ear,  JCA    adapter  …    

Maven,  Ant,  WLST  

Weblogic  console  

JDeveloper  OEPE  

SOA  Suite   Sar   Ant,  WLST   Enterprise  manager  

JDeveloper  

BPM  Suite   Sar   Ant,  WLST   Enterprise  manager  

JDeveloper,  Web  process  tool  

OSB   Jar   WLST  (call  from  ant)  

OSB  console   OEPE  

20  |  x  20  |  20  

Deployment Summary (2)

Deployment   Env   Component   Remark  

JDeveloper   D   JEE,  SCA  Composites   All  types  of  SCA  

OEPE   D   JEE,  OSB  arFfacts   All  OSB  arFfacts  

Process  Composer   D,T   BPMN  Process   Depends  on  workflow  

Rule  Composer   D,T   Business  rules  

WebLogic  Console   T   JEE   All  JEE  types  

Enterprise  Manager   T   SCA  Composite   All  types  of  SCA  

OSB  Console   T   OSB  arFfacts   Including  XSD,  WSLD  etc  

Maven  scripts   D,T,A,P   JEE   Packaging  in  A  and  P  

Ant  scripts   D,T,A,P   JEE,  SCA,  OSB   Packaging  in  A  and  P  

WLST  scripts   D,T,A,P   JEE,  SCA,  OSB   Incl  resources  

21  |  x  21  |  20  

Deployment in Oracle SOA Suite and in Oracle BPM Suite

Lonneke Dikmans

November 2012 | Nuremberg