You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Andrea Zoppello <zo...@tiscali.it> on 2008/10/23 14:38:24 UTC

Call Java Code within BPEL Process

Hi All,

I'm evaluating BPEL as orchestration language to buil process flow.

I think it's very good and complete specification, but before to proceed 
i really
need to understand if bpel coul be used also with services that are not 
webservices itself.

What i want to achieve is to have a BPEL process to call both 
webservices ( SOAP services ) and generic services ( not SOAP ) for 
example a Java class.

Looking for this type of stuff on the network it seems there are three 
way to do that:

1) Use BPELJ ( but ODE not support this )
2) Use WSIF
3) Use the <extensionActivity> BPEL element.

Am i wrong?? In particular i'm interested to know on how to implement an 
exetension activity within ode, and then let the engine to use it.

Is there any documentation about that, or a very simple example??

Thank you for the attention

Andrea



RE: Call Java Code within BPEL Process

Posted by Hart Liu <ha...@live.com>.
Sorry I don't have. I did not try, but I don't think it matters how it is deployed. the same approach should work as WAR. You can try the HelloWorld example and modify it in the same way as Ping-Pong to see whether it works in WAR.
 
> Date: Tue, 23 Nov 2010 17:09:52 +0530
> Subject: Re: Call Java Code within BPEL Process
> From: varunjain56@gmail.com
> To: user@ode.apache.org
> 
> Hi,
> 
> I am actually trying and opting to use tomcat instead of ServiceMix. The
> example in repos seems to be using JBI. Do you have any example using
> Tomcat?
> 
> 
> On Fri, Nov 12, 2010 at 8:05 PM, Hart Liu <ha...@live.com> wrote:
> 
> >
> > You can download from ODE SVN repository (
> > http://svn.apache.org/repos/asf/ode/). The example is actually on ODE
> > 1.3.4, and I think 2.0 may have the same example or more. I still haven't
> > got 2.0 deployed to ServiceMix 4.2, are you using ServiceMix or Tomcat etc.?
> >
> > > Date: Fri, 12 Nov 2010 11:32:29 +0530
> > > Subject: Re: Call Java Code within BPEL Process
> > > From: varunjain56@gmail.com
> > > To: user@ode.apache.org
> > >
> > > Thanks for the reply Hart. Where can I get this example?
> > >
> > > On Thu, Nov 11, 2010 at 9:17 PM, Hart Liu <ha...@live.com> wrote:
> > >
> > > >
> > > > you can have a look at the ping-pong example. I am not sure whether
> > there
> > > > is any other way to invoke java class. I will love to see more.
> > > >
> > > > > Date: Thu, 11 Nov 2010 04:32:56 -0800
> > > > > From: varunjain56@gmail.com
> > > > > To: user@ode.apache.org
> > > > > Subject: Re: Call Java Code within BPEL Process
> > > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > > Are there specific examples now for invoking Java class within a BPEL
> > > > using
> > > > > Apache ODE 2.0?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Andrea Zoppello-2 wrote:
> > > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I'm evaluating BPEL as orchestration language to buil process flow.
> > > > > >
> > > > > > I think it's very good and complete specification, but before to
> > > > proceed
> > > > > > i really
> > > > > > need to understand if bpel coul be used also with services that are
> > not
> > > > > > webservices itself.
> > > > > >
> > > > > > What i want to achieve is to have a BPEL process to call both
> > > > > > webservices ( SOAP services ) and generic services ( not SOAP ) for
> > > > > > example a Java class.
> > > > > >
> > > > > > Looking for this type of stuff on the network it seems there are
> > three
> > > > > > way to do that:
> > > > > >
> > > > > > 1) Use BPELJ ( but ODE not support this )
> > > > > > 2) Use WSIF
> > > > > > 3) Use the <extensionActivity> BPEL element.
> > > > > >
> > > > > > Am i wrong?? In particular i'm interested to know on how to
> > implement
> > > > an
> > > > > > exetension activity within ode, and then let the engine to use it.
> > > > > >
> > > > > > Is there any documentation about that, or a very simple example??
> > > > > >
> > > > > > Thank you for the attention
> > > > > >
> > > > > > Andrea
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > >
> > http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
> > > > > Sent from the Apache Ode User mailing list archive at Nabble.com.
> > > > >
> > > >
> > > >
> >
> >
 		 	   		  

Re: Call Java Code within BPEL Process

Posted by Varun Jain <va...@gmail.com>.
Hi,

I am actually trying and opting to use tomcat instead of ServiceMix. The
example in repos seems to be using JBI. Do you have any example using
Tomcat?


On Fri, Nov 12, 2010 at 8:05 PM, Hart Liu <ha...@live.com> wrote:

>
> You can download from ODE SVN repository (
> http://svn.apache.org/repos/asf/ode/). The example is actually on ODE
> 1.3.4, and I think 2.0 may have the same example or more. I still haven't
> got 2.0 deployed to ServiceMix 4.2, are you using ServiceMix or Tomcat etc.?
>
> > Date: Fri, 12 Nov 2010 11:32:29 +0530
>  > Subject: Re: Call Java Code within BPEL Process
> > From: varunjain56@gmail.com
> > To: user@ode.apache.org
> >
> > Thanks for the reply Hart. Where can I get this example?
> >
> > On Thu, Nov 11, 2010 at 9:17 PM, Hart Liu <ha...@live.com> wrote:
> >
> > >
> > > you can have a look at the ping-pong example. I am not sure whether
> there
> > > is any other way to invoke java class. I will love to see more.
> > >
> > > > Date: Thu, 11 Nov 2010 04:32:56 -0800
> > > > From: varunjain56@gmail.com
> > > > To: user@ode.apache.org
> > > > Subject: Re: Call Java Code within BPEL Process
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > Are there specific examples now for invoking Java class within a BPEL
> > > using
> > > > Apache ODE 2.0?
> > > >
> > > >
> > > >
> > > >
> > > > Andrea Zoppello-2 wrote:
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I'm evaluating BPEL as orchestration language to buil process flow.
> > > > >
> > > > > I think it's very good and complete specification, but before to
> > > proceed
> > > > > i really
> > > > > need to understand if bpel coul be used also with services that are
> not
> > > > > webservices itself.
> > > > >
> > > > > What i want to achieve is to have a BPEL process to call both
> > > > > webservices ( SOAP services ) and generic services ( not SOAP ) for
> > > > > example a Java class.
> > > > >
> > > > > Looking for this type of stuff on the network it seems there are
> three
> > > > > way to do that:
> > > > >
> > > > > 1) Use BPELJ ( but ODE not support this )
> > > > > 2) Use WSIF
> > > > > 3) Use the <extensionActivity> BPEL element.
> > > > >
> > > > > Am i wrong?? In particular i'm interested to know on how to
> implement
> > > an
> > > > > exetension activity within ode, and then let the engine to use it.
> > > > >
> > > > > Is there any documentation about that, or a very simple example??
> > > > >
> > > > > Thank you for the attention
> > > > >
> > > > > Andrea
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > >
> http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
> > > > Sent from the Apache Ode User mailing list archive at Nabble.com.
> > > >
> > >
> > >
>
>

RE: Call Java Code within BPEL Process

Posted by Hart Liu <ha...@live.com>.
You can download from ODE SVN repository (http://svn.apache.org/repos/asf/ode/). The example is actually on ODE 1.3.4, and I think 2.0 may have the same example or more. I still haven't got 2.0 deployed to ServiceMix 4.2, are you using ServiceMix or Tomcat etc.?
 
> Date: Fri, 12 Nov 2010 11:32:29 +0530
> Subject: Re: Call Java Code within BPEL Process
> From: varunjain56@gmail.com
> To: user@ode.apache.org
> 
> Thanks for the reply Hart. Where can I get this example?
> 
> On Thu, Nov 11, 2010 at 9:17 PM, Hart Liu <ha...@live.com> wrote:
> 
> >
> > you can have a look at the ping-pong example. I am not sure whether there
> > is any other way to invoke java class. I will love to see more.
> >
> > > Date: Thu, 11 Nov 2010 04:32:56 -0800
> > > From: varunjain56@gmail.com
> > > To: user@ode.apache.org
> > > Subject: Re: Call Java Code within BPEL Process
> > >
> > >
> > > Hi All,
> > >
> > > Are there specific examples now for invoking Java class within a BPEL
> > using
> > > Apache ODE 2.0?
> > >
> > >
> > >
> > >
> > > Andrea Zoppello-2 wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I'm evaluating BPEL as orchestration language to buil process flow.
> > > >
> > > > I think it's very good and complete specification, but before to
> > proceed
> > > > i really
> > > > need to understand if bpel coul be used also with services that are not
> > > > webservices itself.
> > > >
> > > > What i want to achieve is to have a BPEL process to call both
> > > > webservices ( SOAP services ) and generic services ( not SOAP ) for
> > > > example a Java class.
> > > >
> > > > Looking for this type of stuff on the network it seems there are three
> > > > way to do that:
> > > >
> > > > 1) Use BPELJ ( but ODE not support this )
> > > > 2) Use WSIF
> > > > 3) Use the <extensionActivity> BPEL element.
> > > >
> > > > Am i wrong?? In particular i'm interested to know on how to implement
> > an
> > > > exetension activity within ode, and then let the engine to use it.
> > > >
> > > > Is there any documentation about that, or a very simple example??
> > > >
> > > > Thank you for the attention
> > > >
> > > > Andrea
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
> > > Sent from the Apache Ode User mailing list archive at Nabble.com.
> > >
> >
> >
 		 	   		  

Re: Call Java Code within BPEL Process

Posted by Varun Jain <va...@gmail.com>.
Thanks for the reply Hart. Where can I get this example?

On Thu, Nov 11, 2010 at 9:17 PM, Hart Liu <ha...@live.com> wrote:

>
> you can have a look at the ping-pong example. I am not sure whether there
> is any other way to invoke java class. I will love to see more.
>
> > Date: Thu, 11 Nov 2010 04:32:56 -0800
> > From: varunjain56@gmail.com
> > To: user@ode.apache.org
> > Subject: Re: Call Java Code within BPEL Process
>  >
> >
> > Hi All,
> >
> > Are there specific examples now for invoking Java class within a BPEL
> using
> > Apache ODE 2.0?
> >
> >
> >
> >
> > Andrea Zoppello-2 wrote:
> > >
> > > Hi All,
> > >
> > > I'm evaluating BPEL as orchestration language to buil process flow.
> > >
> > > I think it's very good and complete specification, but before to
> proceed
> > > i really
> > > need to understand if bpel coul be used also with services that are not
> > > webservices itself.
> > >
> > > What i want to achieve is to have a BPEL process to call both
> > > webservices ( SOAP services ) and generic services ( not SOAP ) for
> > > example a Java class.
> > >
> > > Looking for this type of stuff on the network it seems there are three
> > > way to do that:
> > >
> > > 1) Use BPELJ ( but ODE not support this )
> > > 2) Use WSIF
> > > 3) Use the <extensionActivity> BPEL element.
> > >
> > > Am i wrong?? In particular i'm interested to know on how to implement
> an
> > > exetension activity within ode, and then let the engine to use it.
> > >
> > > Is there any documentation about that, or a very simple example??
> > >
> > > Thank you for the attention
> > >
> > > Andrea
> > >
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
> > Sent from the Apache Ode User mailing list archive at Nabble.com.
> >
>
>

RE: Call Java Code within BPEL Process

Posted by Hart Liu <ha...@live.com>.
you can have a look at the ping-pong example. I am not sure whether there is any other way to invoke java class. I will love to see more.
 
> Date: Thu, 11 Nov 2010 04:32:56 -0800
> From: varunjain56@gmail.com
> To: user@ode.apache.org
> Subject: Re: Call Java Code within BPEL Process
> 
> 
> Hi All,
> 
> Are there specific examples now for invoking Java class within a BPEL using
> Apache ODE 2.0?
> 
> 
> 
> 
> Andrea Zoppello-2 wrote:
> > 
> > Hi All,
> > 
> > I'm evaluating BPEL as orchestration language to buil process flow.
> > 
> > I think it's very good and complete specification, but before to proceed 
> > i really
> > need to understand if bpel coul be used also with services that are not 
> > webservices itself.
> > 
> > What i want to achieve is to have a BPEL process to call both 
> > webservices ( SOAP services ) and generic services ( not SOAP ) for 
> > example a Java class.
> > 
> > Looking for this type of stuff on the network it seems there are three 
> > way to do that:
> > 
> > 1) Use BPELJ ( but ODE not support this )
> > 2) Use WSIF
> > 3) Use the <extensionActivity> BPEL element.
> > 
> > Am i wrong?? In particular i'm interested to know on how to implement an 
> > exetension activity within ode, and then let the engine to use it.
> > 
> > Is there any documentation about that, or a very simple example??
> > 
> > Thank you for the attention
> > 
> > Andrea
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
> 
 		 	   		  

Re: Call Java Code within BPEL Process

Posted by Varun Jain <va...@gmail.com>.
Hi All,

Are there specific examples now for invoking Java class within a BPEL using
Apache ODE 2.0?




Andrea Zoppello-2 wrote:
> 
> Hi All,
> 
> I'm evaluating BPEL as orchestration language to buil process flow.
> 
> I think it's very good and complete specification, but before to proceed 
> i really
> need to understand if bpel coul be used also with services that are not 
> webservices itself.
> 
> What i want to achieve is to have a BPEL process to call both 
> webservices ( SOAP services ) and generic services ( not SOAP ) for 
> example a Java class.
> 
> Looking for this type of stuff on the network it seems there are three 
> way to do that:
> 
> 1) Use BPELJ ( but ODE not support this )
> 2) Use WSIF
> 3) Use the <extensionActivity> BPEL element.
> 
> Am i wrong?? In particular i'm interested to know on how to implement an 
> exetension activity within ode, and then let the engine to use it.
> 
> Is there any documentation about that, or a very simple example??
> 
> Thank you for the attention
> 
> Andrea
> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Call-Java-Code-within-BPEL-Process-tp20129979p30189601.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: Call Java Code within BPEL Process

Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi Mathieu,

Thank you for your response, i'll look at the code and i'll try to 
understand how to proceed.

Another area we're investigating within this problem is the integration 
between BPEL and SCA.

If i've understand well, one of the objectives of a SCA Component, is to 
work in terms of services and references without worryng about bindings 
and transport, so if you're able to map a BPEL process  and it's partner 
link to a sca component and services and reference, in theory you could 
make a SCA Component A( Implemented in BPEL ) to be dependent on a Sca 
componet B ( Implemented in JAVA ) working together.

Is that correct, or is there something where i'm wrong?? Any thoughs???

Thx
Andrea





Looking at the SCA concept
Matthieu Riou ha scritto:
> On Thu, Oct 23, 2008 at 5:38 AM, Andrea Zoppello <zo...@tiscali.it>wrote:
>
>   
>> Hi All,
>>
>> I'm evaluating BPEL as orchestration language to buil process flow.
>>
>> I think it's very good and complete specification, but before to proceed i
>> really
>> need to understand if bpel coul be used also with services that are not
>> webservices itself.
>>
>> What i want to achieve is to have a BPEL process to call both webservices (
>> SOAP services ) and generic services ( not SOAP ) for example a Java class.
>>
>> Looking for this type of stuff on the network it seems there are three way
>> to do that:
>>
>> 1) Use BPELJ ( but ODE not support this )
>> 2) Use WSIF
>> 3) Use the <extensionActivity> BPEL element.
>>
>> Am i wrong?? In particular i'm interested to know on how to implement an
>> exetension activity within ode, and then let the engine to use it.
>>
>>     
>
> I would say that 1) and 2) are basically dead at this point. There's a
> fourth possibility that would be to use the local Axis2 transport that lets
> you invoke a Java class directly by using the local:/ url scheme.
>
>
>   
>> Is there any documentation about that, or a very simple example??
>>
>>     
>
> For the extension activity, I thought we had some documentation but can't
> find it, maybe Tammo will be able to help. But we have examples here (check
> the readme):
>
> http://svn.apache.org/repos/asf/ode/trunk/extensions/
>
> For the Axis2 local transport you should ask the Axis2 folks, there might be
> some documentation on there website too.
>
> Cheers,
> Matthieu
>
>
>   
>> Thank you for the attention
>>
>> Andrea
>>
>>
>>
>>     
>
>   


Re: Call Java Code within BPEL Process

Posted by Matthieu Riou <ma...@offthelip.org>.
On Thu, Oct 23, 2008 at 5:38 AM, Andrea Zoppello <zo...@tiscali.it>wrote:

> Hi All,
>
> I'm evaluating BPEL as orchestration language to buil process flow.
>
> I think it's very good and complete specification, but before to proceed i
> really
> need to understand if bpel coul be used also with services that are not
> webservices itself.
>
> What i want to achieve is to have a BPEL process to call both webservices (
> SOAP services ) and generic services ( not SOAP ) for example a Java class.
>
> Looking for this type of stuff on the network it seems there are three way
> to do that:
>
> 1) Use BPELJ ( but ODE not support this )
> 2) Use WSIF
> 3) Use the <extensionActivity> BPEL element.
>
> Am i wrong?? In particular i'm interested to know on how to implement an
> exetension activity within ode, and then let the engine to use it.
>

I would say that 1) and 2) are basically dead at this point. There's a
fourth possibility that would be to use the local Axis2 transport that lets
you invoke a Java class directly by using the local:/ url scheme.


>
> Is there any documentation about that, or a very simple example??
>

For the extension activity, I thought we had some documentation but can't
find it, maybe Tammo will be able to help. But we have examples here (check
the readme):

http://svn.apache.org/repos/asf/ode/trunk/extensions/

For the Axis2 local transport you should ask the Axis2 folks, there might be
some documentation on there website too.

Cheers,
Matthieu


>
> Thank you for the attention
>
> Andrea
>
>
>