You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by sam tam <sa...@gmail.com> on 2006/11/27 07:12:19 UTC

Re: SCA and BPEL

Hello Guys..

As discussed earlier about Integration of SCA(Apache Tuscany) and BPEL
(Apache Ode),

 I have started with a bpel container for Apache Tuscany(SCA).

Also i have attached a small readme file .

And a test case file also.

The link for the attached source is :
http://issues.apache.org/jira/browse/TUSCANY-897?page=all

Comments:

Things to do :
- need to figure out a better way than instantiating the server for every
component
- need to bring in databinding into the invoke method to be able to convert
java objects to xml that can be sent over ODE requests and also do the
reverse for the response.


Guys I need your feedback on this !!! Plz share your ideas . !!.

Sam..Tam...






___________________________________________________________________________


On 10/29/06, sam tam <sa...@gmail.com> wrote:
>
> That would be fine with me Ant.  I am residing in India ..So to confirm :
> Thursday 4pm BST !
>
> Sam...
>
> On 10/29/06, ant elder < ant.elder@gmail.com> wrote:
> >
> > Thats fine for me, how about you Sam?
> >
> >    ...ant
> >
> > On 10/27/06, Matthieu Riou <ma...@gmail.com> wrote:
> > >
> > > Actually most Ode committers (including myself) are in California.
> > Also
> > > we're going to be a bit busy early next week. So would 4pm BST (8am
> > PST) on
> > > Thursday work for you?
> > >
> > > On 10/27/06, ant elder <an...@gmail.com> wrote:
> > > >
> > > > Sure ok I guess an IRC chat would be fine to get started. I'm in UK
> > time
> > > > zone but can be pretty flexible about scheduling it. How about
> > 9:30am BST
> > > > next Tuesday?
> > > >
> > > >    ..ant
> > > >
> > > > On 10/26/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > So what about an IRC session to get started? Everybody interested
> > > > > could come to ask questions and we would discuss in more details
> > how this
> > > > > could be done. We can both exchange our views on SCA / BPEL and
> > give as much
> > > > > information as possible to the volunteers (like Sam [1]).
> > > > >
> > > > > What do you think?
> > > > >
> > > > > Matthieu
> > > > >
> > > > > [1]
> > http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200610.mbox/%3c68b75b5f0610260000n64e0d780w79520993fe214925@mail.gmail.com%3e
> > > > >
> > > > >
> > > > > On 10/25/06, ant elder < ant.elder@gmail.com> wrote:
> > > > > >
> > > > > > On 10/25/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > > > >
> > > > > > > Hi all,
> > > > > > >
> > > > > > > This e-mail is being sent to both Apache Ode and Tuscany
> > > > > > > development mailing
> > > > > > > lists.
> > > > > > >
> > > > > > > The objective is to see which possible collaboration could
> > happen
> > > > > > > between
> > > > > > > our 2 projects and how we could integrate them. Alex, Cory and
> >
> > > > > > > myself (we're
> > > > > > > all Ode contributors) met with Jean-Sebastien Delfino and
> > Simon
> > > > > > > Laws
> > > > > > > (Tuscany contributors) during the ApacheCon in Austin and
> > we've
> > > > > > > found out
> > > > > > > that integrating Ode into Tuscany could be a brilliant idea.
> > > > > > >
> > > > > > > From the Tuscany side, there's an SCA client and
> > implementation
> > > > > > > spec for
> > > > > > > BPEL. Roughly, it defines how a BPEL process can be used as an
> > SCA
> > > > > > > component
> > > > > > > (or at least that's my understanding of it). So I guess Ode
> > could
> > > > > > > be a good
> > > > > > > choice for the BPEL part of that.
> > > > > > >
> > > > > > > From the Apache Ode perspective, we've defined an interface to
> > the
> > > > > > > engine (
> > > > > > > a.k.a. the integration API or IAPI for acromyn lovers) and we
> > > > > > > would like to
> > > > > > > support several integration scenarii. Currently we have an
> > > > > > > integration layer
> > > > > > > for Axis2 to support all web services interactions, we also
> > have
> > > > > > > one for JBI
> > > > > > > and another one for CXF has been proposed. We would love to
> > have
> > > > > > > an
> > > > > > > implementation of these interfaces for Tuscany to be able to
> > run
> > > > > > > Ode in an
> > > > > > > SCA environment (for the curious, the interfaces are
> > > > > > > here<https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-api/src/main/java/org/apache/ode/bpel/iapi/
> >
> > > > > > > >
> > > > > > > ).
> > > > > > >
> > > > > > > I think the discussion (if discussion there is) should take
> > place
> > > > > > > on
> > > > > > > tuscany-dev as there's less of us, Ode people, so it's easier
> > for
> > > > > > > us to
> > > > > > > subscribe to it.
> > > > > > >
> > > > > > > So what would it take to fit into Tuscany?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Matthieu
> > > > > > >
> > > > > > >
> > > > > > Hi Matthieu, this would be really great, i'd love for Tuscany to
> > get
> > > > > > a involved with Ode to get a BPEL component.
> > > > > >
> > > > > > For those that haven't found these already there's a white paper
> > on
> > > > > > SCA and BPEL [1] and a specification [2].
> > > > > >
> > > > > > You can see the type of thing required to implement a container
> > for
> > > > > > a new component type in Tuscany by looking at some of our
> > existing ones [3]
> > > > > >
> > > > > > I agree it may be easiest for the discussions to be over here
> > > > > > initially, but i've subscribed to ode-dev as well anyway. I'd be
> > very happy
> > > > > > to help you do this, how would you like to get started?
> > > > > >
> > > > > >    ...ant
> > > > > >
> > > > > > [1] http://osoa.org/display/Main/SCA+BPEL+White+Paper
> > > > > > [2] http://osoa.org/download/attachments/35/SCA_ClientAndImplementationModelforBPEL_v0.95.pdf?version=2
> >
> > > > > >
> > > > > > [3] https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/
> >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
>

Re: SCA and BPEL

Posted by Matthieu Riou <ma...@gmail.com>.
Hi Sam,

I've had a look at your implementation and played with a couple of things on
my side as well. I think I have a much better idea of how things can play
with each other now and how to solve your problems.

- For server instantiation, you should create a separate component for it
with @Init and @Destroy annotations. I've made a rough implementation of it
and I think you could take it and start from that. You'll just have to add
the component as a system implementation in your bpel.system.cdl. I'll
attach the java file to the same Jira issue. Then you can have this injected
in the  BpelComponentBuilder using a constructor like:

    public BpelComponentBuilder(@Autowire BpelServerLoader serverLoader) {
        _server = serverLoader.getServer();
        _store = serverLoader.getStore();
    }

That should fix the server instantiation problem.

- For the binding part you will need to go through a real remote web service
invocation. Check of the Tuscany helloworldws is structured with the
sample-helloworldws web application being deployed in Tomcat and the client
sample-helloworldwsclient calling it remotely. I think you can even reuse
the client almost as is. However the server side should change to something
like:

    <service name="HelloWorldBPELService">
        <interface.wsdl interface="
http://ode/bpel/unit-test.wsdl#wsdl.interface(HelloPortType)"
                wsdli:wsdlLocation="http://ode/bpel/unit-test.wsdl
HelloWorld2.wsdl"/>
        <binding.ws endpoint="
http://ode/bpel/unit-test.wsdl#wsdl.endpoint(HelloService/HelloPort)"
location="HelloWorld2.wsdl" />
        <reference>HelloWorldBPELComponent</reference>
    </service>

    <component name="HelloWorldBPELComponent">
        <bpel:implementation.bpeldepDir="/home/dusty/Dev/Projects/tuscany/sca/services/containers/container.bpel/src/test/resources/HelloWorld2"

serviceId="http://ode/bpel/unit-test.wsdlHelloService"/>
    </component>

Again check the Tuscany sample-helloworldws service declaration, it's almost
the same except for the implementation that will be BPEL in our case instead
of java. You can even use the same type of SDO databinding So you will need
to package the BPEL container on the server side in Tomcat and that should
get loaded.

Let me know if you need more,

Matthieu

On 11/26/06, sam tam <sa...@gmail.com> wrote:
>
> Hello Guys..
>
> As discussed earlier about Integration of SCA(Apache Tuscany) and BPEL
> (Apache Ode),
>
> I have started with a bpel container for Apache Tuscany(SCA).
>
> Also i have attached a small readme file .
>
> And a test case file also.
>
> The link for the attached source is :
> http://issues.apache.org/jira/browse/TUSCANY-897?page=all
>
> Comments:
>
> Things to do :
> - need to figure out a better way than instantiating the server for every
> component
> - need to bring in databinding into the invoke method to be able to
> convert
> java objects to xml that can be sent over ODE requests and also do the
> reverse for the response.
>
>
> Guys I need your feedback on this !!! Plz share your ideas . !!.
>
> Sam..Tam...
>
>
>
>
>
>
>
> ___________________________________________________________________________
>
>
> On 10/29/06, sam tam <sa...@gmail.com> wrote:
> >
> > That would be fine with me Ant.  I am residing in India ..So to confirm
> :
> > Thursday 4pm BST !
> >
> > Sam...
> >
> > On 10/29/06, ant elder < ant.elder@gmail.com> wrote:
> > >
> > > Thats fine for me, how about you Sam?
> > >
> > >    ...ant
> > >
> > > On 10/27/06, Matthieu Riou <ma...@gmail.com> wrote:
> > > >
> > > > Actually most Ode committers (including myself) are in California.
> > > Also
> > > > we're going to be a bit busy early next week. So would 4pm BST (8am
> > > PST) on
> > > > Thursday work for you?
> > > >
> > > > On 10/27/06, ant elder <an...@gmail.com> wrote:
> > > > >
> > > > > Sure ok I guess an IRC chat would be fine to get started. I'm in
> UK
> > > time
> > > > > zone but can be pretty flexible about scheduling it. How about
> > > 9:30am BST
> > > > > next Tuesday?
> > > > >
> > > > >    ..ant
> > > > >
> > > > > On 10/26/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > So what about an IRC session to get started? Everybody
> interested
> > > > > > could come to ask questions and we would discuss in more details
> > > how this
> > > > > > could be done. We can both exchange our views on SCA / BPEL and
> > > give as much
> > > > > > information as possible to the volunteers (like Sam [1]).
> > > > > >
> > > > > > What do you think?
> > > > > >
> > > > > > Matthieu
> > > > > >
> > > > > > [1]
> > >
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200610.mbox/%3c68b75b5f0610260000n64e0d780w79520993fe214925@mail.gmail.com%3e
> > > > > >
> > > > > >
> > > > > > On 10/25/06, ant elder < ant.elder@gmail.com> wrote:
> > > > > > >
> > > > > > > On 10/25/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Hi all,
> > > > > > > >
> > > > > > > > This e-mail is being sent to both Apache Ode and Tuscany
> > > > > > > > development mailing
> > > > > > > > lists.
> > > > > > > >
> > > > > > > > The objective is to see which possible collaboration could
> > > happen
> > > > > > > > between
> > > > > > > > our 2 projects and how we could integrate them. Alex, Cory
> and
> > >
> > > > > > > > myself (we're
> > > > > > > > all Ode contributors) met with Jean-Sebastien Delfino and
> > > Simon
> > > > > > > > Laws
> > > > > > > > (Tuscany contributors) during the ApacheCon in Austin and
> > > we've
> > > > > > > > found out
> > > > > > > > that integrating Ode into Tuscany could be a brilliant idea.
> > > > > > > >
> > > > > > > > From the Tuscany side, there's an SCA client and
> > > implementation
> > > > > > > > spec for
> > > > > > > > BPEL. Roughly, it defines how a BPEL process can be used as
> an
> > > SCA
> > > > > > > > component
> > > > > > > > (or at least that's my understanding of it). So I guess Ode
> > > could
> > > > > > > > be a good
> > > > > > > > choice for the BPEL part of that.
> > > > > > > >
> > > > > > > > From the Apache Ode perspective, we've defined an interface
> to
> > > the
> > > > > > > > engine (
> > > > > > > > a.k.a. the integration API or IAPI for acromyn lovers) and
> we
> > > > > > > > would like to
> > > > > > > > support several integration scenarii. Currently we have an
> > > > > > > > integration layer
> > > > > > > > for Axis2 to support all web services interactions, we also
> > > have
> > > > > > > > one for JBI
> > > > > > > > and another one for CXF has been proposed. We would love to
> > > have
> > > > > > > > an
> > > > > > > > implementation of these interfaces for Tuscany to be able to
> > > run
> > > > > > > > Ode in an
> > > > > > > > SCA environment (for the curious, the interfaces are
> > > > > > > > here<
> https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-api/src/main/java/org/apache/ode/bpel/iapi/
> > >
> > > > > > > > >
> > > > > > > > ).
> > > > > > > >
> > > > > > > > I think the discussion (if discussion there is) should take
> > > place
> > > > > > > > on
> > > > > > > > tuscany-dev as there's less of us, Ode people, so it's
> easier
> > > for
> > > > > > > > us to
> > > > > > > > subscribe to it.
> > > > > > > >
> > > > > > > > So what would it take to fit into Tuscany?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Matthieu
> > > > > > > >
> > > > > > > >
> > > > > > > Hi Matthieu, this would be really great, i'd love for Tuscany
> to
> > > get
> > > > > > > a involved with Ode to get a BPEL component.
> > > > > > >
> > > > > > > For those that haven't found these already there's a white
> paper
> > > on
> > > > > > > SCA and BPEL [1] and a specification [2].
> > > > > > >
> > > > > > > You can see the type of thing required to implement a
> container
> > > for
> > > > > > > a new component type in Tuscany by looking at some of our
> > > existing ones [3]
> > > > > > >
> > > > > > > I agree it may be easiest for the discussions to be over here
> > > > > > > initially, but i've subscribed to ode-dev as well anyway. I'd
> be
> > > very happy
> > > > > > > to help you do this, how would you like to get started?
> > > > > > >
> > > > > > >    ...ant
> > > > > > >
> > > > > > > [1] http://osoa.org/display/Main/SCA+BPEL+White+Paper
> > > > > > > [2]
> http://osoa.org/download/attachments/35/SCA_ClientAndImplementationModelforBPEL_v0.95.pdf?version=2
> > >
> > > > > > >
> > > > > > > [3]
> https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/
> > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>

Re: SCA and BPEL

Posted by Matthieu Riou <ma...@gmail.com>.
Hi Sam,

I've had a look at your implementation and played with a couple of things on
my side as well. I think I have a much better idea of how things can play
with each other now and how to solve your problems.

- For server instantiation, you should create a separate component for it
with @Init and @Destroy annotations. I've made a rough implementation of it
and I think you could take it and start from that. You'll just have to add
the component as a system implementation in your bpel.system.cdl. I'll
attach the java file to the same Jira issue. Then you can have this injected
in the  BpelComponentBuilder using a constructor like:

    public BpelComponentBuilder(@Autowire BpelServerLoader serverLoader) {
        _server = serverLoader.getServer();
        _store = serverLoader.getStore();
    }

That should fix the server instantiation problem.

- For the binding part you will need to go through a real remote web service
invocation. Check of the Tuscany helloworldws is structured with the
sample-helloworldws web application being deployed in Tomcat and the client
sample-helloworldwsclient calling it remotely. I think you can even reuse
the client almost as is. However the server side should change to something
like:

    <service name="HelloWorldBPELService">
        <interface.wsdl interface="
http://ode/bpel/unit-test.wsdl#wsdl.interface(HelloPortType)"
                wsdli:wsdlLocation="http://ode/bpel/unit-test.wsdl
HelloWorld2.wsdl"/>
        <binding.ws endpoint="
http://ode/bpel/unit-test.wsdl#wsdl.endpoint(HelloService/HelloPort)"
location="HelloWorld2.wsdl" />
        <reference>HelloWorldBPELComponent</reference>
    </service>

    <component name="HelloWorldBPELComponent">
        <bpel:implementation.bpeldepDir="/home/dusty/Dev/Projects/tuscany/sca/services/containers/container.bpel/src/test/resources/HelloWorld2"

serviceId="http://ode/bpel/unit-test.wsdlHelloService"/>
    </component>

Again check the Tuscany sample-helloworldws service declaration, it's almost
the same except for the implementation that will be BPEL in our case instead
of java. You can even use the same type of SDO databinding So you will need
to package the BPEL container on the server side in Tomcat and that should
get loaded.

Let me know if you need more,

Matthieu

On 11/26/06, sam tam <sa...@gmail.com> wrote:
>
> Hello Guys..
>
> As discussed earlier about Integration of SCA(Apache Tuscany) and BPEL
> (Apache Ode),
>
> I have started with a bpel container for Apache Tuscany(SCA).
>
> Also i have attached a small readme file .
>
> And a test case file also.
>
> The link for the attached source is :
> http://issues.apache.org/jira/browse/TUSCANY-897?page=all
>
> Comments:
>
> Things to do :
> - need to figure out a better way than instantiating the server for every
> component
> - need to bring in databinding into the invoke method to be able to
> convert
> java objects to xml that can be sent over ODE requests and also do the
> reverse for the response.
>
>
> Guys I need your feedback on this !!! Plz share your ideas . !!.
>
> Sam..Tam...
>
>
>
>
>
>
>
> ___________________________________________________________________________
>
>
> On 10/29/06, sam tam <sa...@gmail.com> wrote:
> >
> > That would be fine with me Ant.  I am residing in India ..So to confirm
> :
> > Thursday 4pm BST !
> >
> > Sam...
> >
> > On 10/29/06, ant elder < ant.elder@gmail.com> wrote:
> > >
> > > Thats fine for me, how about you Sam?
> > >
> > >    ...ant
> > >
> > > On 10/27/06, Matthieu Riou <ma...@gmail.com> wrote:
> > > >
> > > > Actually most Ode committers (including myself) are in California.
> > > Also
> > > > we're going to be a bit busy early next week. So would 4pm BST (8am
> > > PST) on
> > > > Thursday work for you?
> > > >
> > > > On 10/27/06, ant elder <an...@gmail.com> wrote:
> > > > >
> > > > > Sure ok I guess an IRC chat would be fine to get started. I'm in
> UK
> > > time
> > > > > zone but can be pretty flexible about scheduling it. How about
> > > 9:30am BST
> > > > > next Tuesday?
> > > > >
> > > > >    ..ant
> > > > >
> > > > > On 10/26/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > So what about an IRC session to get started? Everybody
> interested
> > > > > > could come to ask questions and we would discuss in more details
> > > how this
> > > > > > could be done. We can both exchange our views on SCA / BPEL and
> > > give as much
> > > > > > information as possible to the volunteers (like Sam [1]).
> > > > > >
> > > > > > What do you think?
> > > > > >
> > > > > > Matthieu
> > > > > >
> > > > > > [1]
> > >
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200610.mbox/%3c68b75b5f0610260000n64e0d780w79520993fe214925@mail.gmail.com%3e
> > > > > >
> > > > > >
> > > > > > On 10/25/06, ant elder < ant.elder@gmail.com> wrote:
> > > > > > >
> > > > > > > On 10/25/06, Matthieu Riou < matthieu.riou@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Hi all,
> > > > > > > >
> > > > > > > > This e-mail is being sent to both Apache Ode and Tuscany
> > > > > > > > development mailing
> > > > > > > > lists.
> > > > > > > >
> > > > > > > > The objective is to see which possible collaboration could
> > > happen
> > > > > > > > between
> > > > > > > > our 2 projects and how we could integrate them. Alex, Cory
> and
> > >
> > > > > > > > myself (we're
> > > > > > > > all Ode contributors) met with Jean-Sebastien Delfino and
> > > Simon
> > > > > > > > Laws
> > > > > > > > (Tuscany contributors) during the ApacheCon in Austin and
> > > we've
> > > > > > > > found out
> > > > > > > > that integrating Ode into Tuscany could be a brilliant idea.
> > > > > > > >
> > > > > > > > From the Tuscany side, there's an SCA client and
> > > implementation
> > > > > > > > spec for
> > > > > > > > BPEL. Roughly, it defines how a BPEL process can be used as
> an
> > > SCA
> > > > > > > > component
> > > > > > > > (or at least that's my understanding of it). So I guess Ode
> > > could
> > > > > > > > be a good
> > > > > > > > choice for the BPEL part of that.
> > > > > > > >
> > > > > > > > From the Apache Ode perspective, we've defined an interface
> to
> > > the
> > > > > > > > engine (
> > > > > > > > a.k.a. the integration API or IAPI for acromyn lovers) and
> we
> > > > > > > > would like to
> > > > > > > > support several integration scenarii. Currently we have an
> > > > > > > > integration layer
> > > > > > > > for Axis2 to support all web services interactions, we also
> > > have
> > > > > > > > one for JBI
> > > > > > > > and another one for CXF has been proposed. We would love to
> > > have
> > > > > > > > an
> > > > > > > > implementation of these interfaces for Tuscany to be able to
> > > run
> > > > > > > > Ode in an
> > > > > > > > SCA environment (for the curious, the interfaces are
> > > > > > > > here<
> https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-api/src/main/java/org/apache/ode/bpel/iapi/
> > >
> > > > > > > > >
> > > > > > > > ).
> > > > > > > >
> > > > > > > > I think the discussion (if discussion there is) should take
> > > place
> > > > > > > > on
> > > > > > > > tuscany-dev as there's less of us, Ode people, so it's
> easier
> > > for
> > > > > > > > us to
> > > > > > > > subscribe to it.
> > > > > > > >
> > > > > > > > So what would it take to fit into Tuscany?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Matthieu
> > > > > > > >
> > > > > > > >
> > > > > > > Hi Matthieu, this would be really great, i'd love for Tuscany
> to
> > > get
> > > > > > > a involved with Ode to get a BPEL component.
> > > > > > >
> > > > > > > For those that haven't found these already there's a white
> paper
> > > on
> > > > > > > SCA and BPEL [1] and a specification [2].
> > > > > > >
> > > > > > > You can see the type of thing required to implement a
> container
> > > for
> > > > > > > a new component type in Tuscany by looking at some of our
> > > existing ones [3]
> > > > > > >
> > > > > > > I agree it may be easiest for the discussions to be over here
> > > > > > > initially, but i've subscribed to ode-dev as well anyway. I'd
> be
> > > very happy
> > > > > > > to help you do this, how would you like to get started?
> > > > > > >
> > > > > > >    ...ant
> > > > > > >
> > > > > > > [1] http://osoa.org/display/Main/SCA+BPEL+White+Paper
> > > > > > > [2]
> http://osoa.org/download/attachments/35/SCA_ClientAndImplementationModelforBPEL_v0.95.pdf?version=2
> > >
> > > > > > >
> > > > > > > [3]
> https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/
> > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>