Re: SCA and BPEL

2006-11-28 Thread Matthieu Riou

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:

   
   http://ode/bpel/unit-test.wsdl#wsdl.interface(HelloPortType)"
   wsdli:wsdlLocation="http://ode/bpel/unit-test.wsdl
HelloWorld2.wsdl"/>
   http://ode/bpel/unit-test.wsdl#wsdl.endpoint(HelloService/HelloPort)"
location="HelloWorld2.wsdl" />
   HelloWorldBPELComponent
   

   
   
http://ode/bpel/unit-test.wsdlHelloService"/>
   

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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> wrote:
> >
> > Thats fine for me, how about you Sam?
> >
> >...ant
> >
> > On 10/27/06, Matthieu Riou <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]
> > > > >
> > > > >
> > > > > On 10/25/06, ant elder < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > On 10/25/06, Matthieu Riou < [EMAIL PROTECTED]> 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
> > > > > > > foun

Re: SCA and BPEL

2006-11-26 Thread sam tam

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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> wrote:
>
> Thats fine for me, how about you Sam?
>
>...ant
>
> On 10/27/06, Matthieu Riou <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]
> > > >
> > > >
> > > > On 10/25/06, ant elder < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > On 10/25/06, Matthieu Riou < [EMAIL PROTECTED]> 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
> > > > > > >
> > > > > > ).
> > > > > >
> > > > > > 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

Re: IRC chat on Ode/Tuscany integration: Thursday 2nd Nov 4pm GMT/8amPST (was Re: SCA and BPEL)

2006-11-03 Thread victor panizza

Hello All.
Just a little question.

I been working with WebSphere Process Server, in the top WPS provides SCA
Components like:
 Business Rules.
 Selectors.
 Human Task.
 BPEL Process.
 States Machines (Implemented using BPEL).

Which of those components actually are supported in tuscany??


Re: IRC chat on Ode/Tuscany integration: Thursday 2nd Nov 4pm GMT/8amPST (was Re: SCA and BPEL)

2006-11-03 Thread Matthieu Riou

Thanks ant!

On 11/3/06, ant elder <[EMAIL PROTECTED]> wrote:


As discussed, I've created an empty skeleton container for this at:

https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/container.bpel/

There's a JIRA for attaching patches to at:
https://issues.apache.org/jira/browse/TUSCANY-897

Starting sending your patches!

   ...ant




Re: IRC chat on Ode/Tuscany integration: Thursday 2nd Nov 4pm GMT/8amPST (was Re: SCA and BPEL)

2006-11-03 Thread ant elder

As discussed, I've created an empty skeleton container for this at:
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/container.bpel/

There's a JIRA for attaching patches to at:
https://issues.apache.org/jira/browse/TUSCANY-897

Starting sending your patches!

  ...ant


Re: IRC chat on Ode/Tuscany integration: Thursday 2nd Nov 4pm GMT/8amPST (was Re: SCA and BPEL)

2006-11-02 Thread Matthieu Riou

For those who couldn't attend, here is the transcript of the chat session:

[08:00]  so shall we start on the BPEL / SCA topic a.k.a. ODE /
Tuscany ?
[08:00]  yes..ofcourse...
[08:01]  Alex is here as well, Lance tried to join us but he has
a firewall problem
[08:01]  can't connect to IRC
[08:01]  hi all
[08:01]  hi ant
[08:01]  how are you doing?
[08:02]  Hi guys!
[08:02]  doing fine...so Tuscany and Ode
[08:02]  have you all had a look at the white paper and spec on the
osoa website?
[08:02] --> lmsurprenant has joined this channel ([EMAIL PROTECTED]
/ibm/x-36f69103afa7a9f8).
[08:03]  I'd like to know if anybody here has experience
integrating "engines" into Tuscany
[08:03]  It would be good to have a model to follow
[08:03]  I've had a look at the spec, not the white paper
[08:03]  yes..i did look at the white paper ..Ant
[08:03]  and SCA C & I model
[08:04]  we have a few Tuscany containers now, which is whats reqd from
tuscany perspective, you can see the code at
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/
[08:05]  all run under java and c++ or some only run on Java and
others on C++ ?
[08:05]  those are only the java ones
[08:06]  ok, nice
[08:06]  the C++ has extensions as well but its quite seperate
[08:06]  the code doesn't seem that big, that's nice
[08:06]  Is there  another  way to contact SCA ie by bindings ? Am i
right Ant ?
[08:07]  what kind of XML representation does Tuscany use
internally?   DOM?
[08:07]  Sam, yes, but the bpel spec talks about using an
impelementtaion type not a binding
[08:07]  oh ok Ant
[08:08] --> Amita has joined this channel ([EMAIL PROTECTED]).
[08:08]  there's a runtime databinding framework which means the
runtime will give the extension data in whatever type it requires
[08:08] <-- lmsurprenant has left this server (Read error: 131 (Connection
reset by peer)).
[08:09]  and which types are currently supported?
[08:09]  the extesnion tells the ri=untime what it requires, and maybe
contrabutes a databinding extension, and then the runtime uses that to
transform the message to whats needed
[08:09]  right now there's sdo, jaxb, cator and axiom:
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/databinding/
[08:10]  i thnk also as part of the runtime DOM and StaAx
[08:10]  what does Ode use internally?
[08:10]  neat!
[08:10]  mostly DOM
[08:11]  we convert Axiom as well for Axis2
[08:11]  and to/from JAXP Sources with JBI
[08:11]  right
[08:11]  I guess the format that would make sense for now would
be DOM
[08:12]  so tuscany should be able to just give the Ode extension DOMs
so it should would quite easily
[08:12]  so how many interfaces you need to implement to build a
container?
[08:15]  ok so a container includes an scdl file defining the classes
it adds to the runtime, for example:
[08:15] 
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/services/containers/container.javascript/src/main/resources/META-INF/sca/default.scdl
[08:16]  the loader as the class that handles the XML config file
[08:17]  for BPEL the spec defines the XML as:
[08:17]  *
[08:17] 
[08:17]  
[08:17] --> halehM has joined this channel (n=
[EMAIL PROTECTED]).
[08:18]  makes sense
[08:18]  so you need a class that has a type name of
implementation.bpel
[08:18]  and that will pick up the process= attribute
[08:18]  and how would deployment work? for now we use deployment
packages that contain BPEL files, WSDL and XSD files and a deployment
descriptor, so that's not only a BPEL
[08:19]  what is your deployment package? sometheing liek a jar file?
[08:19]  i think they have some war file..(ode.war) ..
[08:20]  it's either a zip or an exploded directory version of it
that you can copy under a "well-known" location
[08:20]  the war is the whole thing
[08:20]  oh ok
[08:20]  but when you deploy a "processes" directory gets created
in ode/WEB-INF
[08:21]  so dropping a directory in processes containing all the
necessary files will trigger hot deployment
[08:21]  but we also support remote deployment using a ws
interface
[08:21]  and then you send a SOAP message using a MTOM attachment
with your zip file in there
[08:21]  but that's for Axis2
[08:22]  I guess the mechanism would be different with scca
[08:22]  sca
[08:22]  that would be with Ode handling the sending and receiveing of
WS messages
[08:23]  yes, with a BPEl container i think Tuscany would need to
handle the sending/receiving
[08:23]  right but the deployment in handled by Tuscany right?
and we would be notified when a complete service bundle is deployed (could
contain bpel, ruby and javascript)
[08:23]  so as in the picture in the white paper:
http://osoa.org/display/Main/SCA+BPEL+White+Paper
[08:24]  right
[08:24]  in the simplest case the service and references would be wired
to WS bindings so the BPEL/Ode process would directly receive/send the WS
messages via tuscany
[08:24]  yep
[08:25]  one thing i wondered about, one of you samples talked about
receiveing back 

IRC chat on Ode/Tuscany integration: Thursday 2nd Nov 4pm GMT/8amPST (was Re: SCA and BPEL)

2006-10-30 Thread ant elder

As discussed, they will be an IRC chat to aid getting started with an Apache
Ode component for Tuscany.

The chat will take place on the freenode IRC network, (use server
irc.freenode.net), on channel #tuscany at:

4PM GMT, 8AM PST, 9:30PM India
Thursday 2nd November

Everyone is welcome to join in.

  ...ant

On 10/29/06, sam tam <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
>
> Thats fine for me, how about you Sam?
>
>...ant
>
> On 10/27/06, Matthieu Riou <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]
> > > >
> > > >
> > > > On 10/25/06, ant elder < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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/incub

Re: SCA and BPEL

2006-10-29 Thread ant elder

Thats fine for me, how about you Sam?

  ...ant

On 10/27/06, Matthieu Riou <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED]
> >
> >
> > On 10/25/06, ant elder < [EMAIL PROTECTED]> wrote:
> > >
> > > On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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 > > > >
> > > > ).
> > > >
> > > > 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

2006-10-27 Thread Matthieu Riou

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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]
>
>
> On 10/25/06, ant elder < [EMAIL PROTECTED]> wrote:
> >
> > On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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 > > >
> > > ).
> > >
> > > 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

2006-10-27 Thread ant elder

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 <[EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]


On 10/25/06, ant elder <[EMAIL PROTECTED]> wrote:
>
> On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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 > >
> > ).
> >
> > 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 - Integration

2006-10-26 Thread Matthieu Riou

Hi,

Nice volunteering indeed!

So on the Ode side, I'd go with implementing a specific integration layer
for Tuscany instead of reusing the Axis2 one. That would allow in-VM SCA /
BPEL interactions and a greater integration between the two.

Ode provides an integration API that you have to implement if you want to
plug the engine into something else. The engine uses this API to get
whatever it needs to work, like the ability to send and receive messages, to
get some representation of the services it's going to interact with, or even
threads and transactions. So you would just wire up all services Tuscany
provides into the engine when implementing these interfaces.

To see what those look like you can have a look at [1]. We currently have 3
working implementations for these interfaces: Axis2, JBI and test. The Axis2
one is wrapped around Axis2 in a WAR and works in any servlet container. The
JBI one is bundled in a Service Assembly and can be deployed in ServiceMix.
The test one works in-memory in a standalone manner. These are great
examples to look at to see how the required services are provided to the
engine and how everything is initialized. In particular you can have a look
at ODEServer [2] for Axis2 and OdeLifeCycle [3] for JBI, these are where all
the initialization and wiring up logic happens for these 2 integrations.

I'd start from the test IAPI implementation [4] [5] to see how things work
out, this will run in memory so you won't have to worry about providing a
datasource and a transaction manager to start with. Then you can bring some
pieces from the Axis2 and JBI integrations (copy / paste is your friend) and
increment from that. Implement the different communication interfaces by
using Tuscany services and you should be all set.

Now I think we could discuss about the details and how to use Tuscany
services in Ode during an IRC chat session as I proposed in the other
thread? So we can all have a better understanding of how this will work and
you'll have more information to start from.

Matthieu

[1]
https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-api/src/main/java/org/apache/ode/bpel/iapi/
[2]
https://svn.apache.org/repos/asf/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
[3]
https://svn.apache.org/repos/asf/incubator/ode/trunk/jbi/src/main/java/org/apache/ode/jbi/OdeLifeCycle.java
[4]
https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-test/src/test/java/org/apache/ode/test/BPELTest.java
[5]
https://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-test/src/main/java/org/apache/ode/test/

On 10/26/06, ant elder <[EMAIL PROTECTED]> wrote:


On 10/26/06, sam tam <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am a student and I have been looking into this topic for my project
> work.
> I'd like to contribute as much in this with some help from you folks.
> For
> now here is what I have been doing as ground work.
>
> - Tried out Tuscany M1 release and also recently from the current
> development branch.
> - With Apache ODE I deployed sample process in Tomcat and have been able
> to
> call it using a SOAP message.
>
> At the present moment I am trying to figure out how to integrate ODE
into
> Tuscany.  One obvious thought I have in my mind is to use the Tuscany
> Axis2
> Binding and invoke the BPEL process as a reference.  I am going to be
> digging into the OSOA specs for this and hope to get better clarity as I
> go
> along.
>
> I'd be happy to take advice from you folks on taking this forward.
>
> Thanks.
>
> Sam.
>
>
Hi Sam,

Its great you're interested in this, it would be really good to have BPEL
support in Tuscany. In case you didn't see due to all the ASF email
problems
over the last few days, the Ode guys have also just started talking about
this: http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg10042.html.

I talked about how to start a new container in this old mail:

http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200610.mbox/browser
.
I'd start with trying to get a simple helloworld going which for this
would
be a combination of the Tuscany helloworldws sample and the Ode
axis2-examples HelloWorld2.

Basically start by copying the existing sample and one of the Tuscany
containers, rename everything to BPEL. Remember when you do the
copy/rename
there's scdl in the META-INF/sca directory that you'll need to edit to
update with the new class names.

As there's an existing SCA spec for this you get some help with what to
do.
The spec defines what the implementation element looks like:

  

So you'll need something like a BPELImplementation and
BPELImplementationLoader for that. Use one of the existing ones and just
change the  QName constant to be "implementation.bpel" and the code to
read
in the attribute named "process". A harder part will be how Tuscany
locates
the BPEL process XML, for now its likely easiest to add a location
attribute
and have the loader just read it in, and then sort this part out properly
later oncee th

Re: SCA and BPEL

2006-10-26 Thread sam tam

Yes ..that would be a  brilliant idea  Matthieu !

Sam..

On 10/26/06, Matthieu Riou <[EMAIL PROTECTED]> 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/[EMAIL 
PROTECTED]

On 10/25/06, ant elder <[EMAIL PROTECTED]> wrote:
>
> On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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/
>





--
Catch Me @: www.samjeyam.co.nr

The Engine is the Heart of the Plane
  but
  Pilot is the Soul...

\___(0)___/
 ./ \.


Re: SCA and BPEL

2006-10-26 Thread Matthieu Riou

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/[EMAIL 
PROTECTED]

On 10/25/06, ant elder <[EMAIL PROTECTED]> wrote:


On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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 >
> ).
>
> 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 - Integration

2006-10-26 Thread ant elder

On 10/26/06, sam tam <[EMAIL PROTECTED]> wrote:


Hi,

I am a student and I have been looking into this topic for my project
work.
I'd like to contribute as much in this with some help from you folks.
For
now here is what I have been doing as ground work.

- Tried out Tuscany M1 release and also recently from the current
development branch.
- With Apache ODE I deployed sample process in Tomcat and have been able
to
call it using a SOAP message.

At the present moment I am trying to figure out how to integrate ODE into
Tuscany.  One obvious thought I have in my mind is to use the Tuscany
Axis2
Binding and invoke the BPEL process as a reference.  I am going to be
digging into the OSOA specs for this and hope to get better clarity as I
go
along.

I'd be happy to take advice from you folks on taking this forward.

Thanks.

Sam.



Hi Sam,

Its great you're interested in this, it would be really good to have BPEL
support in Tuscany. In case you didn't see due to all the ASF email problems
over the last few days, the Ode guys have also just started talking about
this: http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg10042.html.

I talked about how to start a new container in this old mail:
http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200610.mbox/browser.
I'd start with trying to get a simple helloworld going which for this would
be a combination of the Tuscany helloworldws sample and the Ode
axis2-examples HelloWorld2.

Basically start by copying the existing sample and one of the Tuscany
containers, rename everything to BPEL. Remember when you do the copy/rename
there's scdl in the META-INF/sca directory that you'll need to edit to
update with the new class names.

As there's an existing SCA spec for this you get some help with what to do.
The spec defines what the implementation element looks like:

 

So you'll need something like a BPELImplementation and
BPELImplementationLoader for that. Use one of the existing ones and just
change the  QName constant to be "implementation.bpel" and the code to read
in the attribute named "process". A harder part will be how Tuscany locates
the BPEL process XML, for now its likely easiest to add a location attribute
and have the loader just read it in, and then sort this part out properly
later oncee things are working. So that would become:

 

The SCA BPEL spec talks about using introspection to work out the services
and references used by the BPEL process, i'd leave this for later also and
just require a .componentType side file for now. Again, just use some
existing ComponentType and ComponentTypeLoader classes unchanged.

Copy some XxxComponent and XxxComponentBuilder classes and change them to
set up and create the necessary Ode objects, and an XxxInvoker to do the
invoking of the bpel process.

As the Ode people are also interested in doing this maybe you should try to
work together. How about start with small patches which I can get committed
to our sandbox so everyone can see how things progress.

Or would it help if I created a folder and template for this in the sandbox
first for you all to send patches in against? Let me know...

  ...ant


Re: SCA and BPEL

2006-10-25 Thread ant elder

On 10/25/06, Matthieu Riou <[EMAIL PROTECTED]> 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/