Search This Blog

Maven - Oracle SOA / BPM 12c - Configuration

With the 12.1.3 release of Oracle Service Bus and Oracle SOA Suite we finally can build all our soa projects with Maven. And this time we can do it natively without calling a utility like configjar or ANT from Maven 


Navigate to %MW_HOME%\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.1.3 
  
Two files available 

·      oracle-maven-sync-12.1.3.jar
·      oracle-maven-sync-12.1.3.pom

and use following commands to sync your local repository:


Check if maven works

mvn -v 

You can also use the maven 3.0.5 version of JDeveloper 12.1.3 located at .../oracle_common/modules/org.apache.maven_3.0.5


install the maven sync plugin to the local repository

mvn install:install-file -DpomFile=oracle-maven-sync-12.1.3.pom -Dfile=oracle-maven-sync-12.1.3.jar -DoracleHome=/Users/Krishna/Oracle/Middleware12.1.3



Deploy all the libraries to the local mvn repository


mvn -X com.oracle.maven:oracle-maven-sync:push -DoracleHome=/Users/Krishna/Oracle/Middleware/Oracle_Home/


update your local archetype catalog


mvn archetype:crawl -Dcatalog=/Users/Krishna/.m2/archetype-catalog.xml


Generate SOA Application and project as shown below. This generates SOA application HelloWorld-soa-application with  project  HelloWorld-soa-project.


mvn archetype:generate -DarchetypeGroupId=com.oracle.soa.archetype -DarchetypeArtifactId=oracle-soa-application -DarchetypeVersion=12.1.3-0-0 -DgroupId=org.my.helloworld -DartifactId=HelloWorld-soa-application -DprojectName=HelloWorld-soa-project -Dversion=1.0-SNAPSHOT

Adding Header in BPM and BPEL - REST Service

Adding Header in  BPM and BPEL - REST Service


   For setting headers in REST service no need of any entry in composite.xml. Only for SOAP service   we have to make entry in composite.xml



  Properties :    rest.binding.http.<<Custom Header Name >>

  Example   :    rest.binding.http.username



    BPM Service setting header - Service Properties


 BPM Service setting header - Message Headers


 
BPEL Service getting header -  Receive activity in .BPEL


OPENLDAP configuration in Weblogic

OPENLDAP configuration in Weblogic


Step 1: OpenLDAP Installation


Refer below URL for openLDAP installation


http://www.userbooster.de/en/support/feature­articles/openldap­for­windows­installation
.aspx



Step 2 : Create two files under


C:\OpenLDAP\ldifdata


File One Name :  FileOne.ldif

## DEFINE DIT ROOT/BASE/SUFFIX  ####
## uses RFC 2377 format
## replace maxcrc and com as necessary below
## or for experimentation leave as is


## dcObject is an AUXILLIARY objectclass and MUST
## have a STRUCTURAL objectclass (organization in this case)
# this is an ENTRY sequence and is preceded by a BLANK line


dn: dc=maxcrc,dc=com dc: maxcrc
description: My wonderful company as much text as you want to place objectClass: dcObject
objectClass: organization o: Maxcrc, Inc.

## FIRST Level hierarchy - people
## uses mixed upper and lower case for objectclass
# this is an ENTRY sequence and is preceded by a BLANK line


dn: ou=people, dc=maxcrc,dc=com ou: people
description: All people in organisation objectclass: organizationalunit

## SECOND Level hierarchy
## ADD a single entry under FIRST (people) level
# this is an ENTRY sequence and is preceded by a BLANK line
# the ou: Human Resources is the department name


dn: cn=Robert Smith,ou=people,dc=maxcrc,dc=com objectclass: inetOrgPerson

cn: Robert Smith cn: Robert J Smith cn: bob  smith
sn: smith uid: rjsmith userpassword: rJsmitH carlicense: HISCAR 123
homephone: 555-111-2222 mail: r.smith@example.com mail: rsmith@example.com mail: bob.smith@example.com description: swell guy
ou: Human Resources


Run following commands in cmd :

>>> C:\OpenLDAP\ClientTools
ldapmodify.exe -a -x -h localhost -p 389 -D "cn=manager,dc=maxcrc,dc=com" -f
C:\OpenLDAP\ldifdata\FileOne.ldif -w secret


File Two Name : FileTwo.ldif


## SECOND Level hierarchy
## ADD a single entry under FIRST (people) level
# this is an ENTRY sequence and is preceded by a BLANK line
# the ou: Human Resources is the department name


dn: cn=krishna moorthi,ou=people,dc=maxcrc,dc=com objectclass: inetOrgPerson
cn: krishna moorthi cn: P krishna
cn: moorthi sn: kris
uid: krishna
userpassword: SomePassword carlicense: HISCAR 123 homephone: 555­111­2222
mail: panji.pratomo555@gmail.com mail: panji.pratomo555@mysamz.com mail: panji_pratomo555@yahoo.com description: football maniac
ou: SOA




Run following commands in cmd :

>>> C:\OpenLDAP\ClientTools
ldapmodify.exe -a -x -h localhost -p 389 -D "cn=manager,dc=maxcrc,dc=com" -f
C:\OpenLDAP\ldifdata\FileTwo.ldif -w secret










Step 3: Open Jxplorer ( LDAP Browser )


Now you can able to see user created in OpenLDAP. Enter following details :
Host Name :    ServerName   ( Ex: localhost ) Port             :    389
Base DN     :     dc=maxcrc,dc=com
Level           :     Anonymous








Step 4 : Configure OpenLDAP in weblogic console


weblogic console → Security Relams → MyRealms  → providers → Authentication


Click New → Enter LDAP Name ( Ex : KrishnaLDAP )






Click KrishnaLDAP → change control flag to → Sufficient





Host Name      : localhost
Port                 : 389
User base DN :  ou=people, dc=maxcrc, dc=com





Note : Restart weblogic Server