Friday, April 11, 2008

Undeployment of BPEL process and ESB Services

With Oracle SOA Suite and Oracle AIA the whole development process is regulated with ANT. Wir SOA Suite we were able to deploy BPEL and ESB processes. What we missed was the possibility to undeploy these services.

If you are using Oracle AIA Foundation your are able to undeploy these services. This van be done via ANT extension, which are developed along with AIA.

To undeploy a BPEL process you use the following task:

<undeployBPELProcess
User="${deploy.user}"
Password="${deploy.password}"
Domain="${bpel.domain.name}"
Process="${bpel.process.name}"
Rev="${bpel.deploy.local.version}"
Opmnrequestport="${deploy.opmnport}"
Oc4jinstancename="${deploy.oc4jname}"
hostname="${deploy.hostname}"/>
To undeploy a ESB service you use the following task:
<undeployESBEntities
esbMetadataServerHostname="${deploy.hostname}"
esbMetadataServerPort="${deploy.httpport}"
userName="${deploy.user}"
password="${deploy.password}">
<service guid="${guid}"/>
</undeployESBEntities>



Note the the GUID for the ESB service is the unique identifier of the service in the ESB system. This can be viewed in the database (wf_event).

15 comments:

Anonymous said...

Thanks, this is useful! Is there any way to retire a process through ANT?

Marc Kelderman SOA Blog said...

Yes off course. The examples in the articles are based on ant.

Next month I will publish my article on my build system, that is using these tasks.

Rajesh said...

Hey Marc,

I read your blog posts and they are very helpful. I am in middle of a demo and out of nowhere I am getting an error in bpel console. I have posted it on Oracle Forum.

http://forums.oracle.com/forums/thread.jspa?threadID=672692&tstart=0

If you have nay idea about this issue can you please let me know. Your help will be greatly appreciated.

Thanks
Rajesh

Anonymous said...

Hi,

i read your blog and found some very usefull information.

can you please tell me where i need to put this code or how to execute. i am new in this SOA field...so now able to get properly.

Marc Kelderman SOA Blog said...

This mechanism is based on the ANT. You could use this in the ant build.xml file to do your un-deployment.

Sathya said...

Hi Marc,

Can you post the link or website from where I can download the jar libraries for undeployBPELProcess task, as I am using only SOA and not integrated with AIA.
Thanks!

Regards,
Sathya

Marc Kelderman SOA Blog said...

You can download the complete code here:

http://www.namredlek.nl/orasoa/osbs_2.1.3.zip

Anonymous said...

Marc ,the link is broken.it would be great if you tell the procedure/steps to undeploy a bpel process.

Marc Kelderman SOA Blog said...

it is updated

http://www.namredlek.nl/orasoa/osbs_2.1.3.zip

investor said...

Hi, I'm using your script to deploy to ESB and it works. Thank you very much.

Recently I made a mistake, I deployed a ESB project from one workspace, check in the code to CVS.

Then i checked out to another workspace n deploy it to the same server. Since then, I can no longer delete the project from ESB server. I used the script to undeploy but it still doesn;t work. I still see the project exists in the ESB console, the weird thing is I can see the project exists twice in the console. It looks like some sort of caching of previous project which deployed from different workspace.

Any idea how to fix this problem ?

EdwinE. said...

Hi Marc,

This tool is the best.
Can you post the link or website from where I can download the libraries, as I am using only SOA.
Thanks!

Regards,
Edwin

Sandeep Seshan said...

Hi Marc,

The link is again broken :-

http://www.namredlek.nl/orasoa/osbs_2.1.3.zip

can you please repost the link where we can download it ?

srinivas said...

Hi,

When i undeploy the ESB as you mentioned using ANT task, it is giving the error "oracle.tip.esb.client.ClientException: 404 : Not Found".

But i am able to deploy the ESB service by using above credentials.
Could you please though some light?

Regards,
SAM

cool said...

Hi All,

I have used the same script for ANT and able to deploy in QA environment but if i use the same script in integration i am unable to deploy.
Could some body help on this...

Thanks,
Sri

naveen said...

http://forums.oracle.com/forums/thread.jspa?threadID=1098149&tstart=0


Hi can u help me on this thread

Post a Comment

Post a Comment