Friday, December 19, 2008

Deploy BPEL process with different name

What I want to do?

What I want to do is this.
There is a process A.
I want to deploy this to the server with name X.

How I did it?

This is just very simple.
Just open up the bpel.xml file

Change the following tag
<BPELProcess id="A"
to
<BPELProcess id="X"

Why I want to do this?

No particular reason actually. One of my friends wanted to know this.
If he wanted to know there could be other too who want to know this.
So I put this up.

Do All ASync BPEL process require correlation?

Why I ask this?

Well it is natural to ask this question once you have read about correlation.
When to use correlation? And a even better question when not to use correlation?

When not to use correlations?

If you have 2 BPEL processes that behave in the following way you do not require correlation.

A calls B --> ASync(Invoke)
B send result back to A --> ASync(Invoke)

This scenario does not require you to use correlation if you are with in BPEL realm.

How does this work?

BPEL does this behind the scenes for you.
Well there is some thing called WS-Adressing that takes care of this.

When does this above rule break?

If you are using a Async callback in a flowN branch you break this rule as there will be more than one process waiting to receive the input. WS-Addressing is not enough.

The other scenario is when you have atleast 3 processes that work as stated below.

A calls B
B calls C
C calls A

Now how does C know which instance of A to call. This forces you to use correlation.

There are other complex scenarios that can make you use correlation that is a variance of the above.

Links

How to use correlation in FlowN
http://oraclebpelindepth.blogspot.com/search/label/FlowN

Friday, December 12, 2008

getFaultAsString( ) in SOA version and wonderful JDev

Why I write this?

When one of my team members questioned that getFaultAsString( ) was shown as invalid in JDev that had my bells ringing. He also dig up some posts that were talking about some versions.

Well when I read a few posts after googling them out to say that getFaultAsString( ) had gone and has come back. I wanted to see that in my version of SOA suite.

What did I find out?

A few posts read this feature had disappeared in soa 10.1.3 and has come back in soa 10.1.3.3.
So what the hell is this, do it work or not work.
So does it work with soa 10.1.3.4 version.

Working or not in versions?

soa 10.1.3.3 -> Yes it works
soa 10.1.3.3 after MLR patches -> Yes it works
soa 10.1.3.4 -> Yes it works

Whatz it with JDev?

Jdev
10.1.3.3 -> complains in JDev while creating the assign
Function of name "getFaultAsString" not Found
Just Ignore this and proceed with deployment, it will work in server.

Jdev 10.1.3.4 -> worked!! :)

Links I found

http://forums.oracle.com/forums/message.jspa?messageID=2139312

Monday, December 01, 2008

SOA suite 10.1.3.1.0 with oracle 10.2.0.2 joke

Why I write this

I just tried to install SOA suite 10.1.3.1.0 onto my PC.
So i went onto download the oracle DB. That when I was surprised.

What is the version of oracle you want???

The SOA suite advanced install database version support recommended by oracle is

Oracle Database 10g Release 2 (10.2.x) -->10.2.0.2 or later

OK. Thatz cool. Just that I can not download one for the version of OS i have.

What is this to do with the OS !! :(

I have got Windows XP professional running on my PC.
So naturally I want to download oracle DB version 10.2.0.2 or later for windows.

But I can not find it. Oracle only gives these to download.
Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows - This I can't use

Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008 - This I don't want as this is for Vista

Oracle Database 10g Release 2 (10.2.0.4) for Microsoft Windows Vista x64 and Microsoft Windows Server 2008 x64 - This I don't want as this is for Vista

What the questions in my mind

The basic question is if oracle SOA suite 10.1.3.1.0 needs Oracle DB 10.2.02 or higher. Why is there no Windows Xp compatible 10.2.0.3 or higher. Why only vista?

To get SOA suite onto my Xp, looks like i have to go through a lot of pain to just get the dehydration database up and running. Not at all elegant.

What did i end up doing

Well I end up download the database upgrade for 10.2.0.1 to 10.2.0.2.

How to upgrade 10.2.0.1 to 10.2.0.2

You will find all the
information on how to upgrade from 10.2.0.1 database to version 10.2.0.2 follow read me of patch 4547817 or metalink note 316900.1

Basically you will end up downloading the path set for oracle database and applying it.

Just be sure to follow post installation instructions.
Link that helped me was
http://becomeappsdba.blogspot.com/2007/06/upgrade-oracle-database-to-10202-soa.html