Showing posts with label dheeraj mishra. Show all posts
Showing posts with label dheeraj mishra. Show all posts

Friday, 13 October 2017

Get Set Properties in BPEL header / Passing Properties from 1 BPEL and receiving in another BPEL using header

Hi Guys,

I am writing this post, because one day, I wanted to pass few properties from my bpel, which I needed in 2nd bpel process. I coudn't find any blogs with full details. There were many with partial details about how to do it.

Use Case :
Properties of 1st bpel needs to be passed to 2nd bpel. These could be timestamp, any unique ID genrated in bpel 1, or File name or location in case of file/ftp adapter service etc.

Implementation :
There could be many ways, how you do this, however one of the simplest way to achieve this is using the properties. High level steps :
1. Add the properties while invoking the reference Paternelink
2. Fetch the properties from received payload.

Note : The Syntax is different for bpel 1.1 and bpel 2.0, Most blogs has this for bpel 1.1 in their posts. This post is based on bpel 2.0

STEP 1 :
Add properties in your Invoke.

Source code view--

Add properties in your receive activity of 2nd bpel

 Source code view--

Thats all.

Testing, screens from the Flow trace.

1st bpel invoke --

2nd bpel receive --

It is not only INVOKE and RECEIVE activities where you can use , but others supported activities are listed below with their format:

BPEL 2.0 bpelx Extensions Syntax
The following example shows bpelx extensions syntax in BPEL 2.0:
<invoke ...>
    <bpelx:fromProperty name="NCName" .../>+
    <bpelx:toProperty name="NCName" .../>+

<receive ...>
    <bpelx:fromProperty name="NCName" .../>+

<onEvent ...>
    <bpelx:fromProperty name="NCName" .../>+

    <bpelx:toProperty name="NCName" .../>+

<reply ...>
    <bpelx:toProperty name="NCName" .../>
Note the following details:
  • The toProperty is a from-spec. This copies a value from the from-spec to the property of the given name.
  • The fromProperty is a to-spec. This copies a value from the property to the to-spec.

BPEL 1.1 bpelx Extensions Syntax

The following example shows bpelx extensions syntax in BPEL 1.1:
<invoke ...>
  <bpelx:inputProperty name="NCName" expression="string" variable="NCName"
 part="NCName" query="string"/>*
  <bpelx:outputProperty name="NCName" expression="string" variable="NCName"
 part="NCName" query="string"/>*

<receive ...>
  <bpelx:property name="NCName" expression="string" variable="NCName"
 part="NCName" query="string"/>*

  <bpelx:property name="NCName" expression="string" variable="NCName"
 part="NCName" query="string"/>*

<reply ...>
  <bpelx:property name="NCName" expression="string" variable="NCName"
 part="NCName" query="string"/>*

Refer Oracle Doc for more detail, available at --

Wednesday, 15 June 2016

Download directly to Unix/Linux from Internet/Oracle using WGET command

Hi Guys,

In this post, I will describe the process to directly download installers from to Unix Machines.
You may wonder, why a post on this topic. Its fairly easy, but sometimes we dont have Browsers in Linux machines. We only have the Terminal or Putty screens to work.
Here's the process, to download using putty.

1. Log in to Unix Machine using Putty.
2. Navigate to location, where you want download installers.
3. Now using any windows PC Chrome browser, Login to, Select your installer & Download it to PC. In Chrome Download tab, Right Click on Downloading file. Select 'Copy Link Address'.

The address will look something like below

This address is valid for few minutes only. Hence do all steps faster.

4. Prepare a command as below using this adrress, your username  password,

wget --http-password=xxxxx234a --no-check-certificate "" -O

5. Copy the above Command and Paste it to Putty screen. Hit enter, your download will start.
6. Repeat the same steps if there are multiple installers.

Thats it folks!

Sunday, 21 July 2013

Oracle Service Bus 11g - Domain Configuration for Windows

Here I am gonna discuss Domain Configuration for Oracle Service Bus 11g for windows PC.

As we have already installed Oracle Service Bus 11g
For Details visit

Oracle Service Bus 11g - Installation for Windows 32 bit

now we will be moving forward with Domain Configuration.

Step 1 : 

Locate the OSB Home directory Inside Middleware Home, and move to directory:  \Oracle\Middleware\OSB_Home\common\bin

Inside the Bin Directory, you will find config.cmd file. Open it either by Double clicking on or by using command Prompt.

Choose the Option "Create new WebLogic Domain" Then click next

Step 2 :

Choose Oracle service Bus , it will also select few other required products.
You can also select other products as per your requirement.

Click next

Step 3 :

Provide name of Domain and Location of Domain Directory.
Oracle Recommend a separate Domain Directory from Fusion Middleware installation Directory.

Click next

Step 4 :

Provide Username and Password for Domain administrator

Click next

Step 5 :

Choose your JDK version available. For production environment JRockit is reccomended.

Click next

Step 6 : 

Select the "OSB JMS Reporting Provider "
It will choose default derby evaluation Database included with Weblogic.

if you want your separate database, then you need to install any Oracle DB compatible database and create schemas using Repository Creation utility (RCU), and Provide those details here.
I will Discuss the steps for running RCU in separate Post.

Click next

Step 7 :

Configuration utility will verify Connection with Schema as provided in next screen and will show the status here.
Since we have chosen Derby Evaulation DB and it is not running now, So the test result will be Failed.
When we start the Admin server later it will automatically start the Derby DB.

Click next, it will show you an error Popup, click Ok to byepass the test.

Step 8 :

Now choose Adinistration Server and Managed server, in this screen.

Click next

Step 9 :

Give name to Admin server and Port no. (Please check the port is not assigned to any other service in your PC).

Click next

Step 10 :

Provide name and port no. for the Managed server here

Click next

Step 11 :

Since our installtion is on single physical machine, so we need not to configure cluster.
Leave default and click next

Step 12 :

Click on 'add machine'
Provide details of machine eg name and address.

Click next

Step 13 :

Assign servers to Machine by clicking arrow button available on centre column. This will be used by NodeManager to start and stop servers remotedly.

Click next

Step 14 :

Verify the summary details for this new Domain. Then click Create.

 This will start domain configuration.

Make note of admin server URL and click Done.

This will finish the Domain Configuration of OSB 11g.
Now in order to start development, we need to start the Admin and managed server, which we have created here.

The process of starting and stopping Admin and Managed server, I will discuss in my next Post.

Wednesday, 3 July 2013

Oracle Service Bus 11g - Installation for Windows 32 bit

Hi All,

Here I am discussing Installation of Oracle Service Bus 11g, in windows 32 bit machine.
First quesstion comes to mind is, What all do we need ?
Answer is pretty simple:

A windows 32 Bit PC with
1. 300 Mhz or Faster Processor(I'm sure , you have it)
2. 2 GB of RAM
3. 5 GB of Hard Disk Space
4. 500 MB or More SWAP and TEMP space.

In order to install, we need to download few packages :
1. Oracle WebLogic Server 11gR1 (10.3.6) + Coherence + OEPE - Package Installer
2. Oracle Service Bus
 from location

Download and Extract these files into a directory.

Now, First of all we need to install Weblogic server 11g.
Step 1: Now start the weblogic installer by double clicking on it. Since setup is large, keep patience, it will take some time to start.

After this screen a new screen will appear,

Click next, new screen will appear like,

 Here choose the Middleware Home Directory and Click Next

Deselect security update if installing for learning purposes, or provide oracle support password if you have purchased the oracle support..
 Then click Next

Choose Custom, and click next

Choose Server Example, if you are installing for learning purpose. Else leave the default values.
Then Click next

Leave Default for this Page.
Click Next

Review the Installation Directories, Make a note of these.
Click Next

Click on Yes, to install Node Manager. It will help in Remote start and Stop and health monitoring of Managed servers.

Choose the users here as per your requirement.
Click Next

Review the Installtion summary here.
Then click Next

Installation will begin, and you can see the progress in terms of percentage.

Deselect Run Quickstart. Then Click on Done.
Step 1 is Completed.
Now we have to install OSB 11g.

Step 2: 
Go to the Directory where you have Extracted the OSB setup.
 it will be something like - "ofm_osb_generic_11."
go inside Disk1 Directory. There you will find a setup.exe file
Copy the Path of setup.exe file.

Now open the command prompt. and move to directory of setup.exe

now write the command
"setup.exe -jreLoc E:\Oracle\Middleware\jdk160_29\jre"
press Enter.
Where "E:\Oracle\Middleware\jdk160_29\jre" is the path of JRE installed with the Weblogic, which we have done in step 1.

Now, setup will start. You will show a window like

 Click on Next

Click on 'skip software update'. If you have purchased the Oracle licences then provide username and password to search for update.

Click Next

Now browse The Middleware  Home directory, which was created in step 1, while installing Weblogic server.
Then Click Next

Choose Custom.
Click next

Select 'Oracle service bus IDE' to use the OEPE(Eclipse IDE for developement).
Select 'Oracle service bus example' if you are a new learner of OSB.

Click Next
 Setup will check some prerequisites here.
click Next

Browse the path for Weblogic server and OEPE, which we have installed in step 1.
 Then click next

Review the Summary of installation here. You can also save the response file here.
The response file are used for silent installation of product.
 Click Install

Now your Installation is started.You can see the progress here. Click Next

Click Next

Click on Finish.

The Installation of Oracle Service Bus is Finished.

In order to use the OSB, you will need to configure the OSB Domain.
I will describe the process of Domain configuration in my next Post "Oracle Service Bus 11g - Domain Configuration". You can find it here

Oracle Service Bus 11g - Domain Configuration for Windows