You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Brian ONeill <bo...@gmail.com> on 2007/06/22 17:55:47 UTC

servicemix-sca now compiling

I submitted another patch:
https://issues.apache.org/activemq/browse/SM-975

This patch adds the http://servicemix.org/m2-repo/ repository to the 
pom.xml in servicemix-sca to resolve the timestamped dependencies.

With this patch servicemix-sca now compiles.

best,
brian

-- 
Brian ONeill
Founder, Source Equity (http://www.sourceequity.com)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024


Re: servicemix-sca now compiling

Posted by Bruce Snyder <br...@gmail.com>.
On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
> I've made all the fixes (to accommodate CheckStyle and PMD).  Is a
> project-level patch the best way to handle all of the affected files?

Yep. Just create a JIRA issue and link it the one that Brian just
filed for his patch so that I know which one to apply first.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: servicemix-sca now compiling

Posted by Bruce Snyder <br...@gmail.com>.
On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
> I've made all the fixes (to accommodate CheckStyle and PMD).  Is a
> project-level patch the best way to handle all of the affected files?

Yep. Just create a JIRA issue and link it the one that Brian just
filed for his patch so that I know which one to apply first.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
I've made all the fixes (to accommodate CheckStyle and PMD).  Is a 
project-level patch the best way to handle all of the affected files?

Kit
----
Kit Plummer
Advanced Programs
Raytheon Mission Systems
520.360.4729 (cell)
520.545.9346 (desk)
kitplummer (im)

Bruce Snyder wrote:
> On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
>> A simple first step might be to get everything past CheckStyle and
>> PMD...so it doesn't take a "non-normal" SM config/install/deploy.
> 
> Agreed - we shouldn't have to maintain a custom repo for this.
> Hopefully someone from Tuscany can help with this.
> 
> Bruce

Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
I've made all the fixes (to accommodate CheckStyle and PMD).  Is a 
project-level patch the best way to handle all of the affected files?

Kit
----
Kit Plummer
Advanced Programs
Raytheon Mission Systems
520.360.4729 (cell)
520.545.9346 (desk)
kitplummer (im)

Bruce Snyder wrote:
> On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
>> A simple first step might be to get everything past CheckStyle and
>> PMD...so it doesn't take a "non-normal" SM config/install/deploy.
> 
> Agreed - we shouldn't have to maintain a custom repo for this.
> Hopefully someone from Tuscany can help with this.
> 
> Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: servicemix-sca now compiling

Posted by Bruce Snyder <br...@gmail.com>.
On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
> A simple first step might be to get everything past CheckStyle and
> PMD...so it doesn't take a "non-normal" SM config/install/deploy.

Agreed - we shouldn't have to maintain a custom repo for this.
Hopefully someone from Tuscany can help with this.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: servicemix-sca now compiling

Posted by Bruce Snyder <br...@gmail.com>.
On 6/22/07, Kit Plummer <ch...@raytheon.com> wrote:
> A simple first step might be to get everything past CheckStyle and
> PMD...so it doesn't take a "non-normal" SM config/install/deploy.

Agreed - we shouldn't have to maintain a custom repo for this.
Hopefully someone from Tuscany can help with this.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
A simple first step might be to get everything past CheckStyle and 
PMD...so it doesn't take a "non-normal" SM config/install/deploy.


Guillaume Nodet wrote:
> Copying tuscany dev list ...
> 
> On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>
>> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> > Thanks, great work !
>> >
>> > Sorry about these problems, but I guess this is a direct consequence of
>> it
>> > being sandboxed :-(
>> > So you'll find that the SE is not complete, but the idea was to
>> implement a
>> > JBI binding for tuscany
>> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>> provider
>> > part was working
>> > somewhat but I think the consumer part is missing (being able to call
>> > external services through java
>> > proxies).
>> >
>> > I guess I stopped because I did not completely understood how the xml
>> > mapping and java / wsdl
>> > mapping were to be written.  While I see how JAX-WS works, there is
>> > something that have escaped
>> > me somehow with SCA (or maybe this isn't specified and that could be 
>> the
>> > reason I did not found it).
>>
>> We should invite some Tuscany folks to discuss this topic so we can
>> work though it. Is anyone subscribed to the Tuscany dev list already
>> who can CC that list? I'm at a client site right now and don't have
>> the time to do it ATM.
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://activemq.org/
>> Apache ServiceMix - http://servicemix.org/
>> Castor - http://castor.org/
>>
> 
> 
> 

Re: servicemix-sca now compiling

Posted by Brian ONeill <bo...@gmail.com>.
Sorry Jean-Sebastien,

I past you the wrong reference:
http://www.jbizint.org/wiki/index.php?title=SCA_translation_layer

-brian

Jean-Sebastien Delfino wrote:
> Guillaume Nodet wrote:
>> Hi Jean-Sebastien !
>>
>> The tuscany SE, as you said, is very old, and has never been finished
>> (that's why it is in the sandbox).
>> The idea was to be able to deploy SCA annotated POJOs onto it and 
>> leverage
>> Tuscany to host them.
>> I think there are some areas where I'd need a few explanations (see 
>> below).
>>
>> We're investigating how SCA and JBI can be bridged.  I'm thinking 
>> that one
>> way is to think about SCA as a
>> development designer and JBI as the runtime.  So one goal is to 
>> investigate
>> how we could transform an SCA
>> assembly into a JBI Service Assembly: each java component would be 
>> deployed
>> onto the afore mentionned
>> Service Engine, a bpel implementation could be deployed onto the Ode 
>> Service
>> Engine (etc...) while wires / bindings
>> would lead to several Service Units for Binding Components (HTTP, JMS,
>> etc...).
>
> Yes, makes sense.
>
> To make sure that I got what you said right, let's use an example to
> illustrate the approach.
>
> Here's an SCA composite describing a simple banking app, made of:
> - a Java component providing account data
> - a BPEL component implementing an Account service
> - a StockQuote reference with a Web Service binding used to get the
> price of the stock in your account
> - a JSON RPC binding providing the Account service to JSON clients
>
> <?xml version="1.0" encoding="UTF-8"?>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>    targetNamespace="http://mybank"
>    xmlns:b="http://mybank"
>    name="MyBank">
>
>    <service name="AccountJSONService" promote="AccountServiceComponent">
>        <interface.java interface="bigbank.account.AccountService"/>
>        <binding.jsonrpc/>
>    </service>
>
>    <component name="AccountServiceComponent">
>        <implementation.bpel process="b:AccountProcess"/>
>        <reference name="accountDataService"
> target="AccountDataServiceComponent"/>
>    </component>
>
>    <component name="AccountDataServiceComponent">
>        <implementation.java class="mybank.AccountDataImpl"/>
>    </component>
>
>    <reference name="StockQuoteReference"
> promote="AccountServiceComponent/stockQuoteService">
>        <binding.ws
> wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/> 
>
>    </reference>
>
> </composite>
>
> As an application developer, I write an SCA composite assembly, the Java
> class and BPEL process, use the WSDL I got for the StockQuote Web
> service. Then I package all these artifacts in an SCA contribution (a
> form of archive described in the SCA spec).
>
> When I deploy this SCA contribution to ServiceMix:
>
> - The Java component gets deployed to a Java SCA Service Engine that
> supports the SCA API and Annotations.
>
> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
> accountDataService partner links gets bound as described in the SCA
> composite.
>
> - The StockQuoteReference and AccountJSONService get deployed to
> corresponding ServiceMix Binding Components, configured as described in
> the SCA composite.
>
> So, at development time, the application developer uses the SCA
> programming model, at deployment time most of the SCA metadata gets
> converted to JBI/ServiceMix configuration, at run time a mix of SCA
> metadata and ServiceMix configuration is used.
>
> Where you thinking along the same lines?
>
>>
>> So I have a few questions that you may help answering:
>>   * where does SDO comes in ? is it mandatory, optional, unspecified ?
>
> An SCA component can use (and flow on its business methods) simple Java
> types, complex Java types, or any Java data binding technology that's
> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
>
> Some binding technologies come with a databinding baggage, for example
> Axis2 will present the data using Axiom.
>
> Same for some component implementation support runtimes, for example the
> Bean Scripting Framework uses Axiom (if I remember correctly), BPEL/ODE
> uses DOM etc.
>
> To save a Java application developer to have to know 5 different
> databinding technologies just to put 3 or 4 business components together
> and talk to a SOAP or JSON service... Tuscany provides a data binding
> transformation capability, handling the necessary conversions between
> the databindings automatically, as long as the supporters of particular
> databindings provide us with the right transformers.
>
> We currently support transformations between Axiom, SDO, Jax-WS, JSON,
> and XMLBeans. However I'd recommend to not go crazy with databindings in
> a single application and try to stick to one or two to avoid any
> surprises, since none of these databindings are perfect...
>
>>   *  how is the mapping between the soap call and the java  method
>> invocation specified ?
>>       I know how JAX-WS can be used to specify the web methods, xml
>> mapping, but how can
>>      you configure this in SCA ?
>
> The mapping depends on which databinding you're using. If you're using
> JAX-WS, its mapping rules will be used, if you're using SDO, the data
> mapping is defined by the SDO spec, if you're using Axiom, well...
> everything maps to an Axiom element :)
>
> If your service interface is a Java interface, we'll introspect it to
> figure which databinding you're using.
>
> You can also declare the databinding in your SCA composite assembly,
> when there is no Java interface to introspect for example, like this:
> <reference name="EchoReference" promote="ComponentB/echoReference">
>        <interface.wsdl
> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
>            wsdli:wsdlLocation="http://example.com/echo.wsdl
> wsdl/echo.wsdl">
>            <db:databinding
> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
> name="org.apache.axiom.om.OMElement" />
>        </interface.wsdl>
>        <e:binding.echo/>
>    </reference>
>
>> This is also needed when you want to
>> translate a java call
>>     to an xml invocation (when using client proxies / references to 
>> other
>> components).
>>
>
> I didn't quite get that part. If your SCA component is a Java component,
> and as an application developer you just want to use Java interfaces and
> don't know anything about WSDL or XSD, I guess you shouldn't have to
> know that the underlying runtime infrastructure uses XML to transport
> your business data, but I'm not sure I understand the scenario you're
> talking about here...
>
>>
>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>>
>>> Guillaume Nodet wrote:
>>> > Copying tuscany dev list ...
>>> >
>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>> >>
>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>>> >> > Thanks, great work !
>>> >> >
>>> >> > Sorry about these problems, but I guess this is a direct
>>> >> consequence of
>>> >> it
>>> >> > being sandboxed :-(
>>> >> > So you'll find that the SE is not complete, but the idea was to
>>> >> implement a
>>> >> > JBI binding for tuscany
>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>>> >> provider
>>> >> > part was working
>>> >> > somewhat but I think the consumer part is missing (being able 
>>> to call
>>> >> > external services through java
>>> >> > proxies).
>>> >> >
>>> >> > I guess I stopped because I did not completely understood how 
>>> the xml
>>> >> > mapping and java / wsdl
>>> >> > mapping were to be written.  While I see how JAX-WS works, 
>>> there is
>>> >> > something that have escaped
>>> >> > me somehow with SCA (or maybe this isn't specified and that could
>>> >> be the
>>> >> > reason I did not found it).
>>> >>
>>> >> We should invite some Tuscany folks to discuss this topic so we can
>>> >> work though it. Is anyone subscribed to the Tuscany dev list already
>>> >> who can CC that list? I'm at a client site right now and don't have
>>> >> the time to do it ATM.
>>> >>
>>> >> Bruce
>>> >> --
>>> >> perl -e 'print
>>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>> >> );'
>>> >>
>>> >> Apache Geronimo - http://geronimo.apache.org/
>>> >> Apache ActiveMQ - http://activemq.org/
>>> >> Apache ServiceMix - http://servicemix.org/
>>> >> Castor - http://castor.org/
>>> >>
>>>
>>> Hi,
>>>
>>> I work on Tuscany, I may be able to help with some of these 
>>> questions :)
>>>
>>> The servicemix-sca module under [1] seems to use an old level of SCA 
>>> and
>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have 
>>> evolved
>>> since then but they are pretty stable now so it might be the right time
>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
>>> upcoming 0.91 release, which provides the same SPIs).
>>>
>>> Do you have specific Tuscany or SCA questions that we can help with?
>>>
>>> Could you describe the type of application and scenario supported by
>>> servicemix-sca? Is there a sample showing how an application developer
>>> will use Tuscany and ServiceMix together?
>>>
>>>
>>> [1]
>>>
>>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>>
>>>
>>> -- 
>>> Jean-Sebastien
>>>
>>>
>>
>>
>
>


-- 
Brian ONeill
Founder, Source Equity (http://www.sourceequity.com)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024


Re: servicemix-sca: updating tuscany dependency

Posted by Kit Plummer <ch...@raytheon.com>.
Kit Plummer
Advanced Programs
Raytheon Missile Systems
520.360.4729 (cell)
520.545.9346 (desk)
kitplummer (im)Thanks again Jean-Sebastian.

At this point I think Guillaume is correct - we need to look at the SE. 
  I'm _guessing_ that the current TucsanyRuntime class gets simplified, 
or replaced by the use of EmbeddedSCADomain.

I'm tied up for the next few days - but, will hopefully get some free 
time to dig a bit deeper...

Kit

Jean-Sebastien Delfino wrote:
> [snip]
> Kit Plummer wrote:
>> Guillaume, I think we figured out how to build/install the latest 
>> Tuscany, referencing it from the servicemix-sca pom.xml.  I'm sure by 
>> the time we have this stuff straight Tuscany will be at 1.0 - or so. ;}
>>
>> On to the problem of getting up-to-date with Tuscany.  The existing 
>> test case instantiates a TuscanyRuntime, which doesn't appear to be 
>> the way to do it anymore...
>>
>> Jean-Sebastian, do you think we can just mimic the 
>> sca/itest/interop-xsq-client/src/test/java/interop/ClientTestCase.java 
>> to get a runtime environment?
>>
>> Thanks for your effort, BTW.
>>
>> Kit
>>
> 
> interop-xsq-client is old stuff, not part of the build at the moment, I 
> just moved it out to an itest/old directory to make this more clear.
> 
> I'd suggest to start with these samples:
> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/calculator/ 
> 
> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-reference/ 
> 
> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-service/ 
> 
> 
> Booting an SCA runtime and domain is much simpler now, here's the test 
> case from the calculator sample:
> 
> **
> * This shows how to test the Calculator service component.
> */
> public class CalculatorTestCase extends TestCase {
> 
>    private CalculatorService calculatorService;
>    private SCADomain scaDomain;
> 
>    protected void setUp() throws Exception {
>        scaDomain = SCADomain.newInstance("Calculator.composite");
>        calculatorService = scaDomain.getService(CalculatorService.class, 
> "CalculatorServiceComponent");
>    }
> 
>    protected void tearDown() throws Exception {
>        scaDomain.close();
>    }
> 
>    public void testCalculator() throws Exception {
>        // Calculate
>        assertEquals(calculatorService.add(3, 2), 5.0);
>        assertEquals(calculatorService.subtract(3, 2), 1.0);
>        assertEquals(calculatorService.multiply(3, 2), 6.0);
>        assertEquals(calculatorService.divide(3, 2), 1.5);
> 
>    }
> }
> 
> 
> If SCADomain does not provide the level of flexibility you need, try 
> EmbeddedSCADomain.
> 
> A test case showing how to use it is there:
> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/impl/EmbeddedSCADomainTestCase.java 
> 
> 

Re: servicemix-sca: updating tuscany dependency

Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
Kit Plummer wrote:
> Guillaume, I think we figured out how to build/install the latest 
> Tuscany, referencing it from the servicemix-sca pom.xml.  I'm sure by 
> the time we have this stuff straight Tuscany will be at 1.0 - or so. ;}
>
> On to the problem of getting up-to-date with Tuscany.  The existing 
> test case instantiates a TuscanyRuntime, which doesn't appear to be 
> the way to do it anymore...
>
> Jean-Sebastian, do you think we can just mimic the 
> sca/itest/interop-xsq-client/src/test/java/interop/ClientTestCase.java 
> to get a runtime environment?
>
> Thanks for your effort, BTW.
>
> Kit
>

interop-xsq-client is old stuff, not part of the build at the moment, I 
just moved it out to an itest/old directory to make this more clear.

I'd suggest to start with these samples:
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/calculator/
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-reference/
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-service/

Booting an SCA runtime and domain is much simpler now, here's the test 
case from the calculator sample:

**
 * This shows how to test the Calculator service component.
 */
public class CalculatorTestCase extends TestCase {

    private CalculatorService calculatorService;
    private SCADomain scaDomain;

    protected void setUp() throws Exception {
        scaDomain = SCADomain.newInstance("Calculator.composite");
        calculatorService = scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent");
    }

    protected void tearDown() throws Exception {
        scaDomain.close();
    }

    public void testCalculator() throws Exception {
        // Calculate
        assertEquals(calculatorService.add(3, 2), 5.0);
        assertEquals(calculatorService.subtract(3, 2), 1.0);
        assertEquals(calculatorService.multiply(3, 2), 6.0);
        assertEquals(calculatorService.divide(3, 2), 1.5);

    }
}


If SCADomain does not provide the level of flexibility you need, try 
EmbeddedSCADomain.

A test case showing how to use it is there:
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/host-embedded/src/test/java/org/apache/tuscany/sca/host/embedded/impl/EmbeddedSCADomainTestCase.java

-- 
Jean-Sebastien


Re: servicemix-sca: updating tuscany dependency

Posted by Kit Plummer <ch...@raytheon.com>.
Guillaume, I think we figured out how to build/install the latest 
Tuscany, referencing it from the servicemix-sca pom.xml.  I'm sure by 
the time we have this stuff straight Tuscany will be at 1.0 - or so. ;}

On to the problem of getting up-to-date with Tuscany.  The existing test 
case instantiates a TuscanyRuntime, which doesn't appear to be the way 
to do it anymore...

Jean-Sebastian, do you think we can just mimic the 
sca/itest/interop-xsq-client/src/test/java/interop/ClientTestCase.java 
to get a runtime environment?

Thanks for your effort, BTW.

Kit


Guillaume Nodet wrote:
> Jean-Sebastien said that the apis are quite stable now, so I guess
> the best way would be upgrade to the latest released version.
> Maybe Jean-Sebastien can provide more inforamtions here.
> 
> Imo, the tuscany code has changed so much so that it may be
> better to try uinderstanding how the SE works and maybe start
> a new one (at least for the tuscany binding classes).
> 
> As for the sources, I guess we should be able to find
> a svn revision that would match the date somehow:
> March the 17th 2006.
> 
> On 6/26/07, Brian ONeill <bo...@gmail.com> wrote:
>>
>>
>> Jean-Sebastien / Guillaume,
>>
>> I'm about to delve into the tests for servicemix-sca.  As expected, they
>> are failing out of the box.  The tests are throwing NPEs down in the
>> tuscany code (JavaContextFactoryBuilder).  To make progress, I'd like to
>> either upgrade the dependency, or grab the source for the version of
>> tuscany that the component is presently using:
>>    <tuscany_version>20060317</tuscany_version>
>>
>> Jean-Sebastien, can you recommend a stable branch to move to?
>> Guillaume, any suggestions?
>>
>> -brian
>>
>> Kit Plummer wrote:
>> > Hey guys.
>> >
>> > Here's the direct link to the use case that Brian referenced:
>> >
>> > http://www.jbizint.org/wiki/index.php?title=SCA_translation_layer
>> >
>> > ----
>> >
>> > I like the target of "deploy this SCA contribution to ServiceMix".
>> >
>> > Kit
>> >
>> >
>> > Brian ONeill wrote:
>> >>
>> >> Jean-Sebastien,
>> >>
>> >> It is a pleasure meeting you.
>> >>
>> >> Yes.  I/we was/were thinking exactly along those lines.  In fact, I
>> >> have a nearly identical example / write-up here:
>> >> http://www.jbizint.org/wiki/index.php?title=SCA_Service_Engine
>> >>
>> >> I appreciate all the input.  Kit Plummer and I are trying to
>> >> resurrect the engine and build on what Guillaume has put in place.  I
>> >> hope to get back to this today and will let you know when we have
>> >> updates.
>> >>
>> >> best regards,
>> >> brian
>> >>
>> >>
>> >>
>> >> Jean-Sebastien Delfino wrote:
>> >>> Guillaume Nodet wrote:
>> >>>> Hi Jean-Sebastien !
>> >>>>
>> >>>> The tuscany SE, as you said, is very old, and has never been 
>> finished
>> >>>> (that's why it is in the sandbox).
>> >>>> The idea was to be able to deploy SCA annotated POJOs onto it and
>> >>>> leverage
>> >>>> Tuscany to host them.
>> >>>> I think there are some areas where I'd need a few explanations (see
>> >>>> below).
>> >>>>
>> >>>> We're investigating how SCA and JBI can be bridged.  I'm thinking
>> >>>> that one
>> >>>> way is to think about SCA as a
>> >>>> development designer and JBI as the runtime.  So one goal is to
>> >>>> investigate
>> >>>> how we could transform an SCA
>> >>>> assembly into a JBI Service Assembly: each java component would be
>> >>>> deployed
>> >>>> onto the afore mentionned
>> >>>> Service Engine, a bpel implementation could be deployed onto the
>> >>>> Ode Service
>> >>>> Engine (etc...) while wires / bindings
>> >>>> would lead to several Service Units for Binding Components (HTTP,
>> JMS,
>> >>>> etc...).
>> >>>
>> >>> Yes, makes sense.
>> >>>
>> >>> To make sure that I got what you said right, let's use an example to
>> >>> illustrate the approach.
>> >>>
>> >>> Here's an SCA composite describing a simple banking app, made of:
>> >>> - a Java component providing account data
>> >>> - a BPEL component implementing an Account service
>> >>> - a StockQuote reference with a Web Service binding used to get the
>> >>> price of the stock in your account
>> >>> - a JSON RPC binding providing the Account service to JSON clients
>> >>>
>> >>> <?xml version="1.0" encoding="UTF-8"?>
>> >>> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>> >>>    targetNamespace="http://mybank"
>> >>>    xmlns:b="http://mybank"
>> >>>    name="MyBank">
>> >>>
>> >>>    <service name="AccountJSONService"
>> >>> promote="AccountServiceComponent">
>> >>>        <interface.java interface="bigbank.account.AccountService"/>
>> >>>        <binding.jsonrpc/>
>> >>>    </service>
>> >>>
>> >>>    <component name="AccountServiceComponent">
>> >>>        <implementation.bpel process="b:AccountProcess"/>
>> >>>        <reference name="accountDataService"
>> >>> target="AccountDataServiceComponent"/>
>> >>>    </component>
>> >>>
>> >>>    <component name="AccountDataServiceComponent">
>> >>>        <implementation.java class="mybank.AccountDataImpl"/>
>> >>>    </component>
>> >>>
>> >>>    <reference name="StockQuoteReference"
>> >>> promote="AccountServiceComponent/stockQuoteService">
>> >>>        <binding.ws
>> >>> wsdlElement="
>> http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
>> >>>
>> >>>    </reference>
>> >>>
>> >>> </composite>
>> >>>
>> >>> As an application developer, I write an SCA composite assembly, the
>> >>> Java
>> >>> class and BPEL process, use the WSDL I got for the StockQuote Web
>> >>> service. Then I package all these artifacts in an SCA contribution (a
>> >>> form of archive described in the SCA spec).
>> >>>
>> >>> When I deploy this SCA contribution to ServiceMix:
>> >>>
>> >>> - The Java component gets deployed to a Java SCA Service Engine that
>> >>> supports the SCA API and Annotations.
>> >>>
>> >>> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
>> >>> accountDataService partner links gets bound as described in the SCA
>> >>> composite.
>> >>>
>> >>> - The StockQuoteReference and AccountJSONService get deployed to
>> >>> corresponding ServiceMix Binding Components, configured as described
>> in
>> >>> the SCA composite.
>> >>>
>> >>> So, at development time, the application developer uses the SCA
>> >>> programming model, at deployment time most of the SCA metadata gets
>> >>> converted to JBI/ServiceMix configuration, at run time a mix of SCA
>> >>> metadata and ServiceMix configuration is used.
>> >>>
>> >>> Where you thinking along the same lines?
>> >>>
>> >>>>
>> >>>> So I have a few questions that you may help answering:
>> >>>>   * where does SDO comes in ? is it mandatory, optional, unspecified
>> ?
>> >>>
>> >>> An SCA component can use (and flow on its business methods) simple
>> Java
>> >>> types, complex Java types, or any Java data binding technology that's
>> >>> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
>> >>>
>> >>> Some binding technologies come with a databinding baggage, for 
>> example
>> >>> Axis2 will present the data using Axiom.
>> >>>
>> >>> Same for some component implementation support runtimes, for example
>> >>> the
>> >>> Bean Scripting Framework uses Axiom (if I remember correctly),
>> BPEL/ODE
>> >>> uses DOM etc.
>> >>>
>> >>> To save a Java application developer to have to know 5 different
>> >>> databinding technologies just to put 3 or 4 business components
>> >>> together
>> >>> and talk to a SOAP or JSON service... Tuscany provides a data binding
>> >>> transformation capability, handling the necessary conversions between
>> >>> the databindings automatically, as long as the supporters of
>> particular
>> >>> databindings provide us with the right transformers.
>> >>>
>> >>> We currently support transformations between Axiom, SDO, Jax-WS, 
>> JSON,
>> >>> and XMLBeans. However I'd recommend to not go crazy with
>> >>> databindings in
>> >>> a single application and try to stick to one or two to avoid any
>> >>> surprises, since none of these databindings are perfect...
>> >>>
>> >>>>   *  how is the mapping between the soap call and the java  method
>> >>>> invocation specified ?
>> >>>>       I know how JAX-WS can be used to specify the web methods, xml
>> >>>> mapping, but how can
>> >>>>      you configure this in SCA ?
>> >>>
>> >>> The mapping depends on which databinding you're using. If you're 
>> using
>> >>> JAX-WS, its mapping rules will be used, if you're using SDO, the data
>> >>> mapping is defined by the SDO spec, if you're using Axiom, well...
>> >>> everything maps to an Axiom element :)
>> >>>
>> >>> If your service interface is a Java interface, we'll introspect it to
>> >>> figure which databinding you're using.
>> >>>
>> >>> You can also declare the databinding in your SCA composite assembly,
>> >>> when there is no Java interface to introspect for example, like this:
>> >>> <reference name="EchoReference" promote="ComponentB/echoReference">
>> >>>        <interface.wsdl
>> >>> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
>> >>>            wsdli:wsdlLocation="http://example.com/echo.wsdl
>> >>> wsdl/echo.wsdl">
>> >>>            <db:databinding
>> >>> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
>> >>> name="org.apache.axiom.om.OMElement" />
>> >>>        </interface.wsdl>
>> >>>        <e:binding.echo/>
>> >>>    </reference>
>> >>>
>> >>>> This is also needed when you want to
>> >>>> translate a java call
>> >>>>     to an xml invocation (when using client proxies / references to
>> >>>> other
>> >>>> components).
>> >>>>
>> >>>
>> >>> I didn't quite get that part. If your SCA component is a Java
>> >>> component,
>> >>> and as an application developer you just want to use Java interfaces
>> >>> and
>> >>> don't know anything about WSDL or XSD, I guess you shouldn't have to
>> >>> know that the underlying runtime infrastructure uses XML to transport
>> >>> your business data, but I'm not sure I understand the scenario you're
>> >>> talking about here...
>> >>>
>> >>>>
>> >>>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>> >>>>>
>> >>>>> Guillaume Nodet wrote:
>> >>>>> > Copying tuscany dev list ...
>> >>>>> >
>> >>>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>> >>>>> >>
>> >>>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> >>>>> >> > Thanks, great work !
>> >>>>> >> >
>> >>>>> >> > Sorry about these problems, but I guess this is a direct
>> >>>>> >> consequence of
>> >>>>> >> it
>> >>>>> >> > being sandboxed :-(
>> >>>>> >> > So you'll find that the SE is not complete, but the idea 
>> was to
>> >>>>> >> implement a
>> >>>>> >> > JBI binding for tuscany
>> >>>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC,
>> >>>>> the
>> >>>>> >> provider
>> >>>>> >> > part was working
>> >>>>> >> > somewhat but I think the consumer part is missing (being able
>> >>>>> to call
>> >>>>> >> > external services through java
>> >>>>> >> > proxies).
>> >>>>> >> >
>> >>>>> >> > I guess I stopped because I did not completely understood how
>> >>>>> the xml
>> >>>>> >> > mapping and java / wsdl
>> >>>>> >> > mapping were to be written.  While I see how JAX-WS works,
>> >>>>> there is
>> >>>>> >> > something that have escaped
>> >>>>> >> > me somehow with SCA (or maybe this isn't specified and that
>> >>>>> could
>> >>>>> >> be the
>> >>>>> >> > reason I did not found it).
>> >>>>> >>
>> >>>>> >> We should invite some Tuscany folks to discuss this topic so we
>> >>>>> can
>> >>>>> >> work though it. Is anyone subscribed to the Tuscany dev list
>> >>>>> already
>> >>>>> >> who can CC that list? I'm at a client site right now and don't
>> >>>>> have
>> >>>>> >> the time to do it ATM.
>> >>>>> >>
>> >>>>> >> Bruce
>> >>>>> >> --
>> >>>>> >> perl -e 'print
>> >>>>> >>
>> >>>>> 
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >>>>> >> );'
>> >>>>> >>
>> >>>>> >> Apache Geronimo - http://geronimo.apache.org/
>> >>>>> >> Apache ActiveMQ - http://activemq.org/
>> >>>>> >> Apache ServiceMix - http://servicemix.org/
>> >>>>> >> Castor - http://castor.org/
>> >>>>> >>
>> >>>>>
>> >>>>> Hi,
>> >>>>>
>> >>>>> I work on Tuscany, I may be able to help with some of these
>> >>>>> questions :)
>> >>>>>
>> >>>>> The servicemix-sca module under [1] seems to use an old level of
>> >>>>> SCA and
>> >>>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have
>> >>>>> evolved
>> >>>>> since then but they are pretty stable now so it might be the right
>> >>>>> time
>> >>>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or
>> >>>>> the
>> >>>>> upcoming 0.91 release, which provides the same SPIs).
>> >>>>>
>> >>>>> Do you have specific Tuscany or SCA questions that we can help 
>> with?
>> >>>>>
>> >>>>> Could you describe the type of application and scenario 
>> supported by
>> >>>>> servicemix-sca? Is there a sample showing how an application
>> >>>>> developer
>> >>>>> will use Tuscany and ServiceMix together?
>> >>>>>
>> >>>>>
>> >>>>> [1]
>> >>>>>
>> >>>>>
>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> Jean-Sebastien
>>
>> -- 
>> Brian ONeill
>> Founder, Source Equity (http://www.sourceequity.com)
>> Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
>> mobile:215.588.6024
>>
>>
> 
> 

Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
Completely agree.  We'll need a means of running the annotated java as
well as the translation layer.

So, lets assume for now we need a servicemix-tuscany SE, and a
sca-jbi-translation plugin for maven. (just so it is easier to talk
about)

With respect to the <implementation.jbi/>, i haven't completely
thought it through yet, but I don't think it raises JBI quite to the
level of SCA because it would be an SCA component implementation, on
par with the other component implementations (e.g. BPEL, EJB and JMS).
 This would establish the same relationship between SCA and JBI as
exists between JMS or EJB and JBI (positioning JBI as a lower level
"implementation" construct).  I understand your concerns though, and
haven't yet decided whether or not an <implementation.jbi/> would be a
good thing -- or even useful.

-brian


On 6/28/07, Guillaume Nodet <gn...@gmail.com> wrote:
> On 6/28/07, Brian O'Neill <bo...@alumni.brown.edu> wrote:
> >
> > Gert,
> >
> > Correct.  What we've been discussing most recently is the SCA
> > translation layer that would convert the lingo as you described.  I
> > wouldn't even call this a component.
> >
> > The second approach I believe also works (creating an SCA SE), but I
> > think we believe the SCA translation layer would provide the most
> > value.
>
>
> See my reply to Gert.  I do think we need both a component (that could be
> use
> without a SCA assembly) and a translation layer.
>
> Having a component that can support deployment of SCA assemblies is not
> a good idea imho, as it will not leverage JBI components: I think all
> SOAP/HTTP calls
> should go through the HTTP/SOAP BC, and the only real way to do that is to
> deploy
> a SU onto the BC (hence the need for a translation layer).
>
> FWIW, I think there is a third approach: to create a a SCA component
> > implementation specification for JBI. (e.g. introduce an
> > implementation.jbi element into SCA contributions)
>
>
> I don't really understand the purpose of this one.  JBI is really about the
> ability to plugin different components that can easily work together, the
> common packaging model and management.  These are not concerns
> to SCA at all.  I don't see the benefit of bringing the JBI stuff at the
> user level.
> Can you explain a bit more on what it would mean to have a
> implementation.jbi ?
> Imho, this would bring JBI at the same level than SCA, whereas I think JBI
> should
> be below SCA, providing the infrastructure where to deploy a SCA
> application.
>
>
> I tried to outline the different strategies here:
> > http://www.jbizint.org/wiki/index.php?title=SCA
> >
> > best regards,
> > -brian
> >
> > On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
> > > L.S.,
> > >
> > >
> > > Just trying to grasp what the problem/question is...
> > >
> > > So, if I understand correctly, the servicemix-sca component will be
> > > somewhat different from any other JBI component.  We won't be building
> > > an SCA container as a service engine (like you would do for e.g. EJBs),
> > > but rather build some kind of support for deploying SCA artifacts
> > > directly on ServiceMix.  In order to do this, the 'metadata' that is
> > > available in the SCA artifact (sorry for not using the correct
> > > terminology, definitely need to read up on SCA) needs to be translated
> > > into JBI lingo, e.g. if an SCA component with implementation.bpel is
> > > being deployed, it needs to be translated into a service unit, targeted
> > > at the Ode JBI SE?
> > >
> > > We are looking at the design some kind of SCADeploymentService, with
> > > translation plugins to enable translation from e.g. an SCA
> > > (implementation.bpel) -> ODE JBI SU... right?
> > >
> > >
> > > Gert
> > >
> > > Brian O'Neill wrote:
> > > > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > > > on 0.90 sca.
> > > >
> > > > So, what are peoples thoughts towards the design of the translation
> > > > layer?
> > > >
> > > > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > > > contribution?
> > > > Then, from the parsed structure generate the service-unit JBI
> > artifacts?
> > > > Each type of implementation(e.g. implementation.bpel) will generate
> > > > different artifacts.  So, this will need to be pluggable / extensible.
> > > >
> > > > Perhaps we start with Jean-Sebastien's example, then implement the
> > > > translation layer first? (independent of both tuscany and servicemix)
> > > >
> > > > What do people think?
> > > >
> > > > -brian
> > > >
> > > >
> > > > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> > > >> [snip]
> > > >> Guillaume Nodet wrote:
> > > >> > Jean-Sebastien said that the apis are quite stable now, so I guess
> > > >> > the best way would be upgrade to the latest released version.
> > > >> > Maybe Jean-Sebastien can provide more inforamtions here.
> > > >> >
> > > >> > Imo, the tuscany code has changed so much so that it may be
> > > >> > better to try uinderstanding how the SE works and maybe start
> > > >> > a new one (at least for the tuscany binding classes).
> > > >> >
> > > >> > As for the sources, I guess we should be able to find
> > > >> > a svn revision that would match the date somehow:
> > > >> > March the 17th 2006.
> > > >> >
> > > >>
> > > >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> > > >> levels... March 17th 2006 is more than a year ago :)
> > > >>
> > > >> --
> > > >> Jean-Sebastien
> > > >>
> > > >>
> > > >
> > > >
> > >
> >
> >
> > --
> > Brian ONeill
> > Source Equity (http://www.sourceequity.com)
> > jBIZint (http://www.jbizint.org)
> > Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> > mobile:215.588.6024
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Guillaume Nodet <gn...@gmail.com>.
On 6/28/07, Brian O'Neill <bo...@alumni.brown.edu> wrote:
>
> Gert,
>
> Correct.  What we've been discussing most recently is the SCA
> translation layer that would convert the lingo as you described.  I
> wouldn't even call this a component.
>
> The second approach I believe also works (creating an SCA SE), but I
> think we believe the SCA translation layer would provide the most
> value.


See my reply to Gert.  I do think we need both a component (that could be
use
without a SCA assembly) and a translation layer.

Having a component that can support deployment of SCA assemblies is not
a good idea imho, as it will not leverage JBI components: I think all
SOAP/HTTP calls
should go through the HTTP/SOAP BC, and the only real way to do that is to
deploy
a SU onto the BC (hence the need for a translation layer).

FWIW, I think there is a third approach: to create a a SCA component
> implementation specification for JBI. (e.g. introduce an
> implementation.jbi element into SCA contributions)


I don't really understand the purpose of this one.  JBI is really about the
ability to plugin different components that can easily work together, the
common packaging model and management.  These are not concerns
to SCA at all.  I don't see the benefit of bringing the JBI stuff at the
user level.
Can you explain a bit more on what it would mean to have a
implementation.jbi ?
Imho, this would bring JBI at the same level than SCA, whereas I think JBI
should
be below SCA, providing the infrastructure where to deploy a SCA
application.


I tried to outline the different strategies here:
> http://www.jbizint.org/wiki/index.php?title=SCA
>
> best regards,
> -brian
>
> On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
> > L.S.,
> >
> >
> > Just trying to grasp what the problem/question is...
> >
> > So, if I understand correctly, the servicemix-sca component will be
> > somewhat different from any other JBI component.  We won't be building
> > an SCA container as a service engine (like you would do for e.g. EJBs),
> > but rather build some kind of support for deploying SCA artifacts
> > directly on ServiceMix.  In order to do this, the 'metadata' that is
> > available in the SCA artifact (sorry for not using the correct
> > terminology, definitely need to read up on SCA) needs to be translated
> > into JBI lingo, e.g. if an SCA component with implementation.bpel is
> > being deployed, it needs to be translated into a service unit, targeted
> > at the Ode JBI SE?
> >
> > We are looking at the design some kind of SCADeploymentService, with
> > translation plugins to enable translation from e.g. an SCA
> > (implementation.bpel) -> ODE JBI SU... right?
> >
> >
> > Gert
> >
> > Brian O'Neill wrote:
> > > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > > on 0.90 sca.
> > >
> > > So, what are peoples thoughts towards the design of the translation
> > > layer?
> > >
> > > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > > contribution?
> > > Then, from the parsed structure generate the service-unit JBI
> artifacts?
> > > Each type of implementation(e.g. implementation.bpel) will generate
> > > different artifacts.  So, this will need to be pluggable / extensible.
> > >
> > > Perhaps we start with Jean-Sebastien's example, then implement the
> > > translation layer first? (independent of both tuscany and servicemix)
> > >
> > > What do people think?
> > >
> > > -brian
> > >
> > >
> > > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> > >> [snip]
> > >> Guillaume Nodet wrote:
> > >> > Jean-Sebastien said that the apis are quite stable now, so I guess
> > >> > the best way would be upgrade to the latest released version.
> > >> > Maybe Jean-Sebastien can provide more inforamtions here.
> > >> >
> > >> > Imo, the tuscany code has changed so much so that it may be
> > >> > better to try uinderstanding how the SE works and maybe start
> > >> > a new one (at least for the tuscany binding classes).
> > >> >
> > >> > As for the sources, I guess we should be able to find
> > >> > a svn revision that would match the date somehow:
> > >> > March the 17th 2006.
> > >> >
> > >>
> > >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> > >> levels... March 17th 2006 is more than a year ago :)
> > >>
> > >> --
> > >> Jean-Sebastien
> > >>
> > >>
> > >
> > >
> >
>
>
> --
> Brian ONeill
> Source Equity (http://www.sourceequity.com)
> jBIZint (http://www.jbizint.org)
> Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> mobile:215.588.6024
>



-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
Gert,

Correct.  What we've been discussing most recently is the SCA
translation layer that would convert the lingo as you described.  I
wouldn't even call this a component.

The second approach I believe also works (creating an SCA SE), but I
think we believe the SCA translation layer would provide the most
value.

FWIW, I think there is a third approach: to create a a SCA component
implementation specification for JBI. (e.g. introduce an
implementation.jbi element into SCA contributions)

I tried to outline the different strategies here:
http://www.jbizint.org/wiki/index.php?title=SCA

best regards,
-brian

On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
> L.S.,
>
>
> Just trying to grasp what the problem/question is...
>
> So, if I understand correctly, the servicemix-sca component will be
> somewhat different from any other JBI component.  We won't be building
> an SCA container as a service engine (like you would do for e.g. EJBs),
> but rather build some kind of support for deploying SCA artifacts
> directly on ServiceMix.  In order to do this, the 'metadata' that is
> available in the SCA artifact (sorry for not using the correct
> terminology, definitely need to read up on SCA) needs to be translated
> into JBI lingo, e.g. if an SCA component with implementation.bpel is
> being deployed, it needs to be translated into a service unit, targeted
> at the Ode JBI SE?
>
> We are looking at the design some kind of SCADeploymentService, with
> translation plugins to enable translation from e.g. an SCA
> (implementation.bpel) -> ODE JBI SU... right?
>
>
> Gert
>
> Brian O'Neill wrote:
> > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > on 0.90 sca.
> >
> > So, what are peoples thoughts towards the design of the translation
> > layer?
> >
> > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > contribution?
> > Then, from the parsed structure generate the service-unit JBI artifacts?
> > Each type of implementation(e.g. implementation.bpel) will generate
> > different artifacts.  So, this will need to be pluggable / extensible.
> >
> > Perhaps we start with Jean-Sebastien's example, then implement the
> > translation layer first? (independent of both tuscany and servicemix)
> >
> > What do people think?
> >
> > -brian
> >
> >
> > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >> [snip]
> >> Guillaume Nodet wrote:
> >> > Jean-Sebastien said that the apis are quite stable now, so I guess
> >> > the best way would be upgrade to the latest released version.
> >> > Maybe Jean-Sebastien can provide more inforamtions here.
> >> >
> >> > Imo, the tuscany code has changed so much so that it may be
> >> > better to try uinderstanding how the SE works and maybe start
> >> > a new one (at least for the tuscany binding classes).
> >> >
> >> > As for the sources, I guess we should be able to find
> >> > a svn revision that would match the date somehow:
> >> > March the 17th 2006.
> >> >
> >>
> >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> >> levels... March 17th 2006 is more than a year ago :)
> >>
> >> --
> >> Jean-Sebastien
> >>
> >>
> >
> >
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
Guillaume,

Well put.  Let me see if I can diagram some of this out.  (I like the
maven idea).  Give me 24 hours to put something together.  (I owe the
EG a presentation anyway, so I'll just leverage that work)

best,
-brian

On 6/28/07, Guillaume Nodet <gn...@gmail.com> wrote:
> I do think we need a SE like servicemix-sca (should be renamed to
> servicemix-tuscany i guess) to host the Java annotated SCA pojo.
> I see the translation between the SCA assembly to a JBI assembly as
> something somewhat independant from ServiceMix core that could be
> reused either at the tooling side,
> as a command line tool (maven ?) or at runtime in ServiceMix.
>
> The SCA annotated POJOs are just one model amongst several that SCA
> can support.  I'm sure we could define a profile for JAX-WS / EJB3
> that we could deploy on servicemix-cxf-se (when it supports EJB3 ;-)
> ).
>
> But we need both to support standard SCA deployments: a SE for SCA
> annotated POJOS and a translation layer to translate the SCA assembly
> to a JBI Service Assembly.
>
> But your assumptions are right about how to handle that: an
> implementation.bpel would be translated into a SU for Ode, same for
> POJOs.  In addition several SUs targeted at BCs need to be generated
> for HTTP/SOAP wires ...
>
> Not sure if this is more clear.
> This is of course subject to discussion, but given my understanding of
> JBI and SCA, this the best solution I came up with.  Any feedback is
> welcome.
>
> On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
> > L.S.,
> >
> >
> > Just trying to grasp what the problem/question is...
> >
> > So, if I understand correctly, the servicemix-sca component will be
> > somewhat different from any other JBI component.  We won't be building
> > an SCA container as a service engine (like you would do for e.g. EJBs),
> > but rather build some kind of support for deploying SCA artifacts
> > directly on ServiceMix.  In order to do this, the 'metadata' that is
> > available in the SCA artifact (sorry for not using the correct
> > terminology, definitely need to read up on SCA) needs to be translated
> > into JBI lingo, e.g. if an SCA component with implementation.bpel is
> > being deployed, it needs to be translated into a service unit, targeted
> > at the Ode JBI SE?
> >
> > We are looking at the design some kind of SCADeploymentService, with
> > translation plugins to enable translation from e.g. an SCA
> > (implementation.bpel) -> ODE JBI SU... right?
> >
> >
> > Gert
> >
> > Brian O'Neill wrote:
> > > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > > on 0.90 sca.
> > >
> > > So, what are peoples thoughts towards the design of the translation
> > > layer?
> > >
> > > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > > contribution?
> > > Then, from the parsed structure generate the service-unit JBI artifacts?
> > > Each type of implementation(e.g. implementation.bpel) will generate
> > > different artifacts.  So, this will need to be pluggable / extensible.
> > >
> > > Perhaps we start with Jean-Sebastien's example, then implement the
> > > translation layer first? (independent of both tuscany and servicemix)
> > >
> > > What do people think?
> > >
> > > -brian
> > >
> > >
> > > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> > >> [snip]
> > >> Guillaume Nodet wrote:
> > >> > Jean-Sebastien said that the apis are quite stable now, so I guess
> > >> > the best way would be upgrade to the latest released version.
> > >> > Maybe Jean-Sebastien can provide more inforamtions here.
> > >> >
> > >> > Imo, the tuscany code has changed so much so that it may be
> > >> > better to try uinderstanding how the SE works and maybe start
> > >> > a new one (at least for the tuscany binding classes).
> > >> >
> > >> > As for the sources, I guess we should be able to find
> > >> > a svn revision that would match the date somehow:
> > >> > March the 17th 2006.
> > >> >
> > >>
> > >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> > >> levels... March 17th 2006 is more than a year ago :)
> > >>
> > >> --
> > >> Jean-Sebastien
> > >>
> > >>
> > >
> > >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Kit Plummer <ch...@raytheon.com>.
kitplummer (im)Agreed...and I believe based on my limited knowledge of 
Tuscany that updating the TuscanyRuntime to be able to deploy a SCA POJO 
should be straight forward - and simpler with the EmbeddedSCADomain.

I also agree on the tooling to provide the mapping between an SCA 
Composite to a JBI integration based on the included SCA bindings.  This 
is definitely a sporty undertaking though.  But, it could be a key 
discriminator (from a "selling" SM perspective).

I believe we're all on the same page.

Kit

Guillaume Nodet wrote:
> I do think we need a SE like servicemix-sca (should be renamed to
> servicemix-tuscany i guess) to host the Java annotated SCA pojo.
> I see the translation between the SCA assembly to a JBI assembly as
> something somewhat independant from ServiceMix core that could be
> reused either at the tooling side,
> as a command line tool (maven ?) or at runtime in ServiceMix.
> 
> The SCA annotated POJOs are just one model amongst several that SCA
> can support.  I'm sure we could define a profile for JAX-WS / EJB3
> that we could deploy on servicemix-cxf-se (when it supports EJB3 ;-)
> ).
> 
> But we need both to support standard SCA deployments: a SE for SCA
> annotated POJOS and a translation layer to translate the SCA assembly
> to a JBI Service Assembly.
> 
> But your assumptions are right about how to handle that: an
> implementation.bpel would be translated into a SU for Ode, same for
> POJOs.  In addition several SUs targeted at BCs need to be generated
> for HTTP/SOAP wires ...
> 
> Not sure if this is more clear.
> This is of course subject to discussion, but given my understanding of
> JBI and SCA, this the best solution I came up with.  Any feedback is
> welcome.
> 
> On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
>> L.S.,
>>
>>
>> Just trying to grasp what the problem/question is...
>>
>> So, if I understand correctly, the servicemix-sca component will be
>> somewhat different from any other JBI component.  We won't be building
>> an SCA container as a service engine (like you would do for e.g. EJBs),
>> but rather build some kind of support for deploying SCA artifacts
>> directly on ServiceMix.  In order to do this, the 'metadata' that is
>> available in the SCA artifact (sorry for not using the correct
>> terminology, definitely need to read up on SCA) needs to be translated
>> into JBI lingo, e.g. if an SCA component with implementation.bpel is
>> being deployed, it needs to be translated into a service unit, targeted
>> at the Ode JBI SE?
>>
>> We are looking at the design some kind of SCADeploymentService, with
>> translation plugins to enable translation from e.g. an SCA
>> (implementation.bpel) -> ODE JBI SU... right?
>>
>>
>> Gert
>>
>> Brian O'Neill wrote:
>> > OK, per Guillaume's suggestion perhaps we start anew basing everything
>> > on 0.90 sca.
>> >
>> > So, what are peoples thoughts towards the design of the translation
>> > layer?
>> >
>> > Should we leverage Tuscany's parsing capabilities to read in the SCA
>> > contribution?
>> > Then, from the parsed structure generate the service-unit JBI 
>> artifacts?
>> > Each type of implementation(e.g. implementation.bpel) will generate
>> > different artifacts.  So, this will need to be pluggable / extensible.
>> >
>> > Perhaps we start with Jean-Sebastien's example, then implement the
>> > translation layer first? (independent of both tuscany and servicemix)
>> >
>> > What do people think?
>> >
>> > -brian
>> >
>> >
>> > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>> >> [snip]
>> >> Guillaume Nodet wrote:
>> >> > Jean-Sebastien said that the apis are quite stable now, so I guess
>> >> > the best way would be upgrade to the latest released version.
>> >> > Maybe Jean-Sebastien can provide more inforamtions here.
>> >> >
>> >> > Imo, the tuscany code has changed so much so that it may be
>> >> > better to try uinderstanding how the SE works and maybe start
>> >> > a new one (at least for the tuscany binding classes).
>> >> >
>> >> > As for the sources, I guess we should be able to find
>> >> > a svn revision that would match the date somehow:
>> >> > March the 17th 2006.
>> >> >
>> >>
>> >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
>> >> levels... March 17th 2006 is more than a year ago :)
>> >>
>> >> --
>> >> Jean-Sebastien
>> >>
>> >>
>> >
>> >
>>
> 
> 

Re: servicemix-sca: updating tuscany dependency

Posted by Guillaume Nodet <gn...@gmail.com>.
I do think we need a SE like servicemix-sca (should be renamed to
servicemix-tuscany i guess) to host the Java annotated SCA pojo.
I see the translation between the SCA assembly to a JBI assembly as
something somewhat independant from ServiceMix core that could be
reused either at the tooling side,
as a command line tool (maven ?) or at runtime in ServiceMix.

The SCA annotated POJOs are just one model amongst several that SCA
can support.  I'm sure we could define a profile for JAX-WS / EJB3
that we could deploy on servicemix-cxf-se (when it supports EJB3 ;-)
).

But we need both to support standard SCA deployments: a SE for SCA
annotated POJOS and a translation layer to translate the SCA assembly
to a JBI Service Assembly.

But your assumptions are right about how to handle that: an
implementation.bpel would be translated into a SU for Ode, same for
POJOs.  In addition several SUs targeted at BCs need to be generated
for HTTP/SOAP wires ...

Not sure if this is more clear.
This is of course subject to discussion, but given my understanding of
JBI and SCA, this the best solution I came up with.  Any feedback is
welcome.

On 6/28/07, Gert Vanthienen <ge...@skynet.be> wrote:
> L.S.,
>
>
> Just trying to grasp what the problem/question is...
>
> So, if I understand correctly, the servicemix-sca component will be
> somewhat different from any other JBI component.  We won't be building
> an SCA container as a service engine (like you would do for e.g. EJBs),
> but rather build some kind of support for deploying SCA artifacts
> directly on ServiceMix.  In order to do this, the 'metadata' that is
> available in the SCA artifact (sorry for not using the correct
> terminology, definitely need to read up on SCA) needs to be translated
> into JBI lingo, e.g. if an SCA component with implementation.bpel is
> being deployed, it needs to be translated into a service unit, targeted
> at the Ode JBI SE?
>
> We are looking at the design some kind of SCADeploymentService, with
> translation plugins to enable translation from e.g. an SCA
> (implementation.bpel) -> ODE JBI SU... right?
>
>
> Gert
>
> Brian O'Neill wrote:
> > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > on 0.90 sca.
> >
> > So, what are peoples thoughts towards the design of the translation
> > layer?
> >
> > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > contribution?
> > Then, from the parsed structure generate the service-unit JBI artifacts?
> > Each type of implementation(e.g. implementation.bpel) will generate
> > different artifacts.  So, this will need to be pluggable / extensible.
> >
> > Perhaps we start with Jean-Sebastien's example, then implement the
> > translation layer first? (independent of both tuscany and servicemix)
> >
> > What do people think?
> >
> > -brian
> >
> >
> > On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >> [snip]
> >> Guillaume Nodet wrote:
> >> > Jean-Sebastien said that the apis are quite stable now, so I guess
> >> > the best way would be upgrade to the latest released version.
> >> > Maybe Jean-Sebastien can provide more inforamtions here.
> >> >
> >> > Imo, the tuscany code has changed so much so that it may be
> >> > better to try uinderstanding how the SE works and maybe start
> >> > a new one (at least for the tuscany binding classes).
> >> >
> >> > As for the sources, I guess we should be able to find
> >> > a svn revision that would match the date somehow:
> >> > March the 17th 2006.
> >> >
> >>
> >> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> >> levels... March 17th 2006 is more than a year ago :)
> >>
> >> --
> >> Jean-Sebastien
> >>
> >>
> >
> >
>


-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca: updating tuscany dependency

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,


Just trying to grasp what the problem/question is...

So, if I understand correctly, the servicemix-sca component will be 
somewhat different from any other JBI component.  We won't be building 
an SCA container as a service engine (like you would do for e.g. EJBs), 
but rather build some kind of support for deploying SCA artifacts 
directly on ServiceMix.  In order to do this, the 'metadata' that is 
available in the SCA artifact (sorry for not using the correct 
terminology, definitely need to read up on SCA) needs to be translated 
into JBI lingo, e.g. if an SCA component with implementation.bpel is 
being deployed, it needs to be translated into a service unit, targeted 
at the Ode JBI SE?

We are looking at the design some kind of SCADeploymentService, with 
translation plugins to enable translation from e.g. an SCA 
(implementation.bpel) -> ODE JBI SU... right?


Gert

Brian O'Neill wrote:
> OK, per Guillaume's suggestion perhaps we start anew basing everything
> on 0.90 sca.
>
> So, what are peoples thoughts towards the design of the translation 
> layer?
>
> Should we leverage Tuscany's parsing capabilities to read in the SCA
> contribution?
> Then, from the parsed structure generate the service-unit JBI artifacts?
> Each type of implementation(e.g. implementation.bpel) will generate
> different artifacts.  So, this will need to be pluggable / extensible.
>
> Perhaps we start with Jean-Sebastien's example, then implement the
> translation layer first? (independent of both tuscany and servicemix)
>
> What do people think?
>
> -brian
>
>
> On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>> [snip]
>> Guillaume Nodet wrote:
>> > Jean-Sebastien said that the apis are quite stable now, so I guess
>> > the best way would be upgrade to the latest released version.
>> > Maybe Jean-Sebastien can provide more inforamtions here.
>> >
>> > Imo, the tuscany code has changed so much so that it may be
>> > better to try uinderstanding how the SE works and maybe start
>> > a new one (at least for the tuscany binding classes).
>> >
>> > As for the sources, I guess we should be able to find
>> > a svn revision that would match the date somehow:
>> > March the 17th 2006.
>> >
>>
>> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
>> levels... March 17th 2006 is more than a year ago :)
>>
>> -- 
>> Jean-Sebastien
>>
>>
>
>

Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
Just an update....

I put a diagram, and a little more text up on:
http://www.jbizint.org/wiki/index.php?title=SCA

To keep things focused, I deleted the verbage around a potential SCA
JBI component implementation.

I added a diagram and Jean-Sebastien's BigBank example (with a few alterations)

Kit and I created a page for the serivcemix-java-sca component:
http://www.jbizint.org/wiki/index.php?title=Servicemix-java-sca

As you can see, we're going to keep the component in a side repo until
we have it working, but we'll build it in the servicemix build
structure under deployables/serviceengines.  So, it will be able to
drop right in when we have it working.

best regards,
brian

On 6/29/07, Guillaume Nodet <gn...@gmail.com> wrote:
> On 6/29/07, Brian O'Neill <bo...@alumni.brown.edu> wrote:
> >
> > All,
> >
> > OK.  So I officially started a new service engine.  Guillaume, I
> > figured I would use servicemix-bean as a template.  Does that make
> > sense to you?
>
>
> Sure, though I would have started with something more simple like
> servicemix-saxon, but servicemix-bean is closer I guess but more
> complicated.
> Anyway, I you have any questions, feel free to ask.
>
> Jean-Sebastien, thanks for the pointers.  I'll get the servicemix-bean
> > up and running with the new name of servicemix-java-sca, then
> > incorporate the tuscany stuff.
> >
> > Kit, we should figure out how we are going to work together on this?
> > I've got a spare svn repo we could work out of.
> >
> > -brian
> >
> >
> > On 6/28/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> > > [snip]
> > > Brian O'Neill wrote:
> > > > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > > > on 0.90 sca.
> > > >
> > > > So, what are peoples thoughts towards the design of the translation
> > > > layer?
> > > >
> > > > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > > > contribution?
> > > > Then, from the parsed structure generate the service-unit JBI
> > artifacts?
> > >
> > >
> > > Just a thought about that translation layer... If you only need the SCA
> > > contribution and assembly models and the ability to read SCA assembly
> > > XML, you don't have to use the whole Tuscany runtime. We've
> > > rearchitected Tuscany SCA a few months ago to support that kind of
> > > scenario and make it easy to reuse / embed a subset of Tuscany modules
> > > in tools, generators, and platforms that are only interested in the SCA
> > > metadata without dragging the whole thing.
> > >
> > > The Tuscany modules are there:
> > > http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/
> > >
> > > For the SCA assembly, SCA contribution and policy metadata models alone,
> > > grab these modules:
> > > assembly
> > > interface
> > > contribution
> > > policy
> > >
> > > Support for Java and WSDL interfaces, and Java component
> > implementations:
> > > interface-java
> > > interface-wsdl
> > > implementation-java
> > >
> > > Support for reading SCA assembly XML and handling SCA contributions:
> > > assembly-xml
> > > interface-java-xml (also introspects Java interfaces)
> > > interface-wsdl-xml (also "introspects" WSDL portTypes)
> > > implementation-java-xml
> > > contribution-impl
> > >
> > > These modules are self contained and should provide you with the ability
> > > to process SCA contributions and read SCA assembly XML, without
> > > dependencies on the Tuscany runtime, IoC container, etc. To draw an
> > > analogy with other projects, you could compare that level of function
> > > with packages like WSDL4J or Woden for WSDL for example: Models and the
> > > ability to read/write them.
> > >
> > > Hope this helps
> > >
> > > --
> > > Jean-Sebastien
> > >
> > >
> >
> >
> > --
> > Brian ONeill
> > Source Equity (http://www.sourceequity.com)
> > jBIZint (http://www.jbizint.org)
> > Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> > mobile:215.588.6024
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Kit Plummer <ch...@raytheon.com>.
Sounds good.  If you already have something set up...that's fine with me.

Kit

Brian O'Neill wrote:
> All,
> 
> OK.  So I officially started a new service engine.  Guillaume, I
> figured I would use servicemix-bean as a template.  Does that make
> sense to you?
> 
> Jean-Sebastien, thanks for the pointers.  I'll get the servicemix-bean
> up and running with the new name of servicemix-java-sca, then
> incorporate the tuscany stuff.
> 
> Kit, we should figure out how we are going to work together on this?
> I've got a spare svn repo we could work out of.
> 
> -brian
> 
> 
> On 6/28/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>> [snip]
>> Brian O'Neill wrote:
>> > OK, per Guillaume's suggestion perhaps we start anew basing everything
>> > on 0.90 sca.
>> >
>> > So, what are peoples thoughts towards the design of the translation
>> > layer?
>> >
>> > Should we leverage Tuscany's parsing capabilities to read in the SCA
>> > contribution?
>> > Then, from the parsed structure generate the service-unit JBI 
>> artifacts?
>>
>>
>> Just a thought about that translation layer... If you only need the SCA
>> contribution and assembly models and the ability to read SCA assembly
>> XML, you don't have to use the whole Tuscany runtime. We've
>> rearchitected Tuscany SCA a few months ago to support that kind of
>> scenario and make it easy to reuse / embed a subset of Tuscany modules
>> in tools, generators, and platforms that are only interested in the SCA
>> metadata without dragging the whole thing.
>>
>> The Tuscany modules are there:
>> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/
>>
>> For the SCA assembly, SCA contribution and policy metadata models alone,
>> grab these modules:
>> assembly
>> interface
>> contribution
>> policy
>>
>> Support for Java and WSDL interfaces, and Java component implementations:
>> interface-java
>> interface-wsdl
>> implementation-java
>>
>> Support for reading SCA assembly XML and handling SCA contributions:
>> assembly-xml
>> interface-java-xml (also introspects Java interfaces)
>> interface-wsdl-xml (also "introspects" WSDL portTypes)
>> implementation-java-xml
>> contribution-impl
>>
>> These modules are self contained and should provide you with the ability
>> to process SCA contributions and read SCA assembly XML, without
>> dependencies on the Tuscany runtime, IoC container, etc. To draw an
>> analogy with other projects, you could compare that level of function
>> with packages like WSDL4J or Woden for WSDL for example: Models and the
>> ability to read/write them.
>>
>> Hope this helps
>>
>> -- 
>> Jean-Sebastien
>>
>>
> 
> 

Re: servicemix-sca: updating tuscany dependency

Posted by Guillaume Nodet <gn...@gmail.com>.
On 6/29/07, Brian O'Neill <bo...@alumni.brown.edu> wrote:
>
> All,
>
> OK.  So I officially started a new service engine.  Guillaume, I
> figured I would use servicemix-bean as a template.  Does that make
> sense to you?


Sure, though I would have started with something more simple like
servicemix-saxon, but servicemix-bean is closer I guess but more
complicated.
Anyway, I you have any questions, feel free to ask.

Jean-Sebastien, thanks for the pointers.  I'll get the servicemix-bean
> up and running with the new name of servicemix-java-sca, then
> incorporate the tuscany stuff.
>
> Kit, we should figure out how we are going to work together on this?
> I've got a spare svn repo we could work out of.
>
> -brian
>
>
> On 6/28/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> > [snip]
> > Brian O'Neill wrote:
> > > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > > on 0.90 sca.
> > >
> > > So, what are peoples thoughts towards the design of the translation
> > > layer?
> > >
> > > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > > contribution?
> > > Then, from the parsed structure generate the service-unit JBI
> artifacts?
> >
> >
> > Just a thought about that translation layer... If you only need the SCA
> > contribution and assembly models and the ability to read SCA assembly
> > XML, you don't have to use the whole Tuscany runtime. We've
> > rearchitected Tuscany SCA a few months ago to support that kind of
> > scenario and make it easy to reuse / embed a subset of Tuscany modules
> > in tools, generators, and platforms that are only interested in the SCA
> > metadata without dragging the whole thing.
> >
> > The Tuscany modules are there:
> > http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/
> >
> > For the SCA assembly, SCA contribution and policy metadata models alone,
> > grab these modules:
> > assembly
> > interface
> > contribution
> > policy
> >
> > Support for Java and WSDL interfaces, and Java component
> implementations:
> > interface-java
> > interface-wsdl
> > implementation-java
> >
> > Support for reading SCA assembly XML and handling SCA contributions:
> > assembly-xml
> > interface-java-xml (also introspects Java interfaces)
> > interface-wsdl-xml (also "introspects" WSDL portTypes)
> > implementation-java-xml
> > contribution-impl
> >
> > These modules are self contained and should provide you with the ability
> > to process SCA contributions and read SCA assembly XML, without
> > dependencies on the Tuscany runtime, IoC container, etc. To draw an
> > analogy with other projects, you could compare that level of function
> > with packages like WSDL4J or Woden for WSDL for example: Models and the
> > ability to read/write them.
> >
> > Hope this helps
> >
> > --
> > Jean-Sebastien
> >
> >
>
>
> --
> Brian ONeill
> Source Equity (http://www.sourceequity.com)
> jBIZint (http://www.jbizint.org)
> Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> mobile:215.588.6024
>



-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
All,

OK.  So I officially started a new service engine.  Guillaume, I
figured I would use servicemix-bean as a template.  Does that make
sense to you?

Jean-Sebastien, thanks for the pointers.  I'll get the servicemix-bean
up and running with the new name of servicemix-java-sca, then
incorporate the tuscany stuff.

Kit, we should figure out how we are going to work together on this?
I've got a spare svn repo we could work out of.

-brian


On 6/28/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> [snip]
> Brian O'Neill wrote:
> > OK, per Guillaume's suggestion perhaps we start anew basing everything
> > on 0.90 sca.
> >
> > So, what are peoples thoughts towards the design of the translation
> > layer?
> >
> > Should we leverage Tuscany's parsing capabilities to read in the SCA
> > contribution?
> > Then, from the parsed structure generate the service-unit JBI artifacts?
>
>
> Just a thought about that translation layer... If you only need the SCA
> contribution and assembly models and the ability to read SCA assembly
> XML, you don't have to use the whole Tuscany runtime. We've
> rearchitected Tuscany SCA a few months ago to support that kind of
> scenario and make it easy to reuse / embed a subset of Tuscany modules
> in tools, generators, and platforms that are only interested in the SCA
> metadata without dragging the whole thing.
>
> The Tuscany modules are there:
> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/
>
> For the SCA assembly, SCA contribution and policy metadata models alone,
> grab these modules:
> assembly
> interface
> contribution
> policy
>
> Support for Java and WSDL interfaces, and Java component implementations:
> interface-java
> interface-wsdl
> implementation-java
>
> Support for reading SCA assembly XML and handling SCA contributions:
> assembly-xml
> interface-java-xml (also introspects Java interfaces)
> interface-wsdl-xml (also "introspects" WSDL portTypes)
> implementation-java-xml
> contribution-impl
>
> These modules are self contained and should provide you with the ability
> to process SCA contributions and read SCA assembly XML, without
> dependencies on the Tuscany runtime, IoC container, etc. To draw an
> analogy with other projects, you could compare that level of function
> with packages like WSDL4J or Woden for WSDL for example: Models and the
> ability to read/write them.
>
> Hope this helps
>
> --
> Jean-Sebastien
>
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
Brian O'Neill wrote:
> OK, per Guillaume's suggestion perhaps we start anew basing everything
> on 0.90 sca.
>
> So, what are peoples thoughts towards the design of the translation 
> layer?
>
> Should we leverage Tuscany's parsing capabilities to read in the SCA
> contribution?
> Then, from the parsed structure generate the service-unit JBI artifacts? 


Just a thought about that translation layer... If you only need the SCA 
contribution and assembly models and the ability to read SCA assembly 
XML, you don't have to use the whole Tuscany runtime. We've 
rearchitected Tuscany SCA a few months ago to support that kind of 
scenario and make it easy to reuse / embed a subset of Tuscany modules 
in tools, generators, and platforms that are only interested in the SCA 
metadata without dragging the whole thing.

The Tuscany modules are there:
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/

For the SCA assembly, SCA contribution and policy metadata models alone, 
grab these modules:
assembly
interface
contribution
policy

Support for Java and WSDL interfaces, and Java component implementations:
interface-java
interface-wsdl
implementation-java

Support for reading SCA assembly XML and handling SCA contributions:
assembly-xml
interface-java-xml (also introspects Java interfaces)
interface-wsdl-xml (also "introspects" WSDL portTypes)
implementation-java-xml
contribution-impl

These modules are self contained and should provide you with the ability 
to process SCA contributions and read SCA assembly XML, without 
dependencies on the Tuscany runtime, IoC container, etc. To draw an 
analogy with other projects, you could compare that level of function 
with packages like WSDL4J or Woden for WSDL for example: Models and the 
ability to read/write them.

Hope this helps

-- 
Jean-Sebastien


Re: servicemix-sca: updating tuscany dependency

Posted by Brian O'Neill <bo...@alumni.brown.edu>.
OK, per Guillaume's suggestion perhaps we start anew basing everything
on 0.90 sca.

So, what are peoples thoughts towards the design of the translation layer?

Should we leverage Tuscany's parsing capabilities to read in the SCA
contribution?
Then, from the parsed structure generate the service-unit JBI artifacts?
Each type of implementation(e.g. implementation.bpel) will generate
different artifacts.  So, this will need to be pluggable / extensible.

Perhaps we start with Jean-Sebastien's example, then implement the
translation layer first? (independent of both tuscany and servicemix)

What do people think?

-brian


On 6/27/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> [snip]
> Guillaume Nodet wrote:
> > Jean-Sebastien said that the apis are quite stable now, so I guess
> > the best way would be upgrade to the latest released version.
> > Maybe Jean-Sebastien can provide more inforamtions here.
> >
> > Imo, the tuscany code has changed so much so that it may be
> > better to try uinderstanding how the SE works and maybe start
> > a new one (at least for the tuscany binding classes).
> >
> > As for the sources, I guess we should be able to find
> > a svn revision that would match the date somehow:
> > March the 17th 2006.
> >
>
> I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1
> levels... March 17th 2006 is more than a year ago :)
>
> --
> Jean-Sebastien
>
>


-- 
Brian ONeill
Source Equity (http://www.sourceequity.com)
jBIZint (http://www.jbizint.org)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024

Re: servicemix-sca: updating tuscany dependency

Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
Guillaume Nodet wrote:
> Jean-Sebastien said that the apis are quite stable now, so I guess
> the best way would be upgrade to the latest released version.
> Maybe Jean-Sebastien can provide more inforamtions here.
>
> Imo, the tuscany code has changed so much so that it may be
> better to try uinderstanding how the SE works and maybe start
> a new one (at least for the tuscany binding classes).
>
> As for the sources, I guess we should be able to find
> a svn revision that would match the date somehow:
> March the 17th 2006.
>

I'd recommend to use the Tuscany SCA 0.90 release and SDO 1.0 beta 1 
levels... March 17th 2006 is more than a year ago :)

-- 
Jean-Sebastien


Re: servicemix-sca: updating tuscany dependency

Posted by Guillaume Nodet <gn...@gmail.com>.
Jean-Sebastien said that the apis are quite stable now, so I guess
the best way would be upgrade to the latest released version.
Maybe Jean-Sebastien can provide more inforamtions here.

Imo, the tuscany code has changed so much so that it may be
better to try uinderstanding how the SE works and maybe start
a new one (at least for the tuscany binding classes).

As for the sources, I guess we should be able to find
a svn revision that would match the date somehow:
 March the 17th 2006.

On 6/26/07, Brian ONeill <bo...@gmail.com> wrote:
>
>
> Jean-Sebastien / Guillaume,
>
> I'm about to delve into the tests for servicemix-sca.  As expected, they
> are failing out of the box.  The tests are throwing NPEs down in the
> tuscany code (JavaContextFactoryBuilder).  To make progress, I'd like to
> either upgrade the dependency, or grab the source for the version of
> tuscany that the component is presently using:
>    <tuscany_version>20060317</tuscany_version>
>
> Jean-Sebastien, can you recommend a stable branch to move to?
> Guillaume, any suggestions?
>
> -brian
>
> Kit Plummer wrote:
> > Hey guys.
> >
> > Here's the direct link to the use case that Brian referenced:
> >
> > http://www.jbizint.org/wiki/index.php?title=SCA_translation_layer
> >
> > ----
> >
> > I like the target of "deploy this SCA contribution to ServiceMix".
> >
> > Kit
> >
> >
> > Brian ONeill wrote:
> >>
> >> Jean-Sebastien,
> >>
> >> It is a pleasure meeting you.
> >>
> >> Yes.  I/we was/were thinking exactly along those lines.  In fact, I
> >> have a nearly identical example / write-up here:
> >> http://www.jbizint.org/wiki/index.php?title=SCA_Service_Engine
> >>
> >> I appreciate all the input.  Kit Plummer and I are trying to
> >> resurrect the engine and build on what Guillaume has put in place.  I
> >> hope to get back to this today and will let you know when we have
> >> updates.
> >>
> >> best regards,
> >> brian
> >>
> >>
> >>
> >> Jean-Sebastien Delfino wrote:
> >>> Guillaume Nodet wrote:
> >>>> Hi Jean-Sebastien !
> >>>>
> >>>> The tuscany SE, as you said, is very old, and has never been finished
> >>>> (that's why it is in the sandbox).
> >>>> The idea was to be able to deploy SCA annotated POJOs onto it and
> >>>> leverage
> >>>> Tuscany to host them.
> >>>> I think there are some areas where I'd need a few explanations (see
> >>>> below).
> >>>>
> >>>> We're investigating how SCA and JBI can be bridged.  I'm thinking
> >>>> that one
> >>>> way is to think about SCA as a
> >>>> development designer and JBI as the runtime.  So one goal is to
> >>>> investigate
> >>>> how we could transform an SCA
> >>>> assembly into a JBI Service Assembly: each java component would be
> >>>> deployed
> >>>> onto the afore mentionned
> >>>> Service Engine, a bpel implementation could be deployed onto the
> >>>> Ode Service
> >>>> Engine (etc...) while wires / bindings
> >>>> would lead to several Service Units for Binding Components (HTTP,
> JMS,
> >>>> etc...).
> >>>
> >>> Yes, makes sense.
> >>>
> >>> To make sure that I got what you said right, let's use an example to
> >>> illustrate the approach.
> >>>
> >>> Here's an SCA composite describing a simple banking app, made of:
> >>> - a Java component providing account data
> >>> - a BPEL component implementing an Account service
> >>> - a StockQuote reference with a Web Service binding used to get the
> >>> price of the stock in your account
> >>> - a JSON RPC binding providing the Account service to JSON clients
> >>>
> >>> <?xml version="1.0" encoding="UTF-8"?>
> >>> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> >>>    targetNamespace="http://mybank"
> >>>    xmlns:b="http://mybank"
> >>>    name="MyBank">
> >>>
> >>>    <service name="AccountJSONService"
> >>> promote="AccountServiceComponent">
> >>>        <interface.java interface="bigbank.account.AccountService"/>
> >>>        <binding.jsonrpc/>
> >>>    </service>
> >>>
> >>>    <component name="AccountServiceComponent">
> >>>        <implementation.bpel process="b:AccountProcess"/>
> >>>        <reference name="accountDataService"
> >>> target="AccountDataServiceComponent"/>
> >>>    </component>
> >>>
> >>>    <component name="AccountDataServiceComponent">
> >>>        <implementation.java class="mybank.AccountDataImpl"/>
> >>>    </component>
> >>>
> >>>    <reference name="StockQuoteReference"
> >>> promote="AccountServiceComponent/stockQuoteService">
> >>>        <binding.ws
> >>> wsdlElement="
> http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
> >>>
> >>>    </reference>
> >>>
> >>> </composite>
> >>>
> >>> As an application developer, I write an SCA composite assembly, the
> >>> Java
> >>> class and BPEL process, use the WSDL I got for the StockQuote Web
> >>> service. Then I package all these artifacts in an SCA contribution (a
> >>> form of archive described in the SCA spec).
> >>>
> >>> When I deploy this SCA contribution to ServiceMix:
> >>>
> >>> - The Java component gets deployed to a Java SCA Service Engine that
> >>> supports the SCA API and Annotations.
> >>>
> >>> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
> >>> accountDataService partner links gets bound as described in the SCA
> >>> composite.
> >>>
> >>> - The StockQuoteReference and AccountJSONService get deployed to
> >>> corresponding ServiceMix Binding Components, configured as described
> in
> >>> the SCA composite.
> >>>
> >>> So, at development time, the application developer uses the SCA
> >>> programming model, at deployment time most of the SCA metadata gets
> >>> converted to JBI/ServiceMix configuration, at run time a mix of SCA
> >>> metadata and ServiceMix configuration is used.
> >>>
> >>> Where you thinking along the same lines?
> >>>
> >>>>
> >>>> So I have a few questions that you may help answering:
> >>>>   * where does SDO comes in ? is it mandatory, optional, unspecified
> ?
> >>>
> >>> An SCA component can use (and flow on its business methods) simple
> Java
> >>> types, complex Java types, or any Java data binding technology that's
> >>> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
> >>>
> >>> Some binding technologies come with a databinding baggage, for example
> >>> Axis2 will present the data using Axiom.
> >>>
> >>> Same for some component implementation support runtimes, for example
> >>> the
> >>> Bean Scripting Framework uses Axiom (if I remember correctly),
> BPEL/ODE
> >>> uses DOM etc.
> >>>
> >>> To save a Java application developer to have to know 5 different
> >>> databinding technologies just to put 3 or 4 business components
> >>> together
> >>> and talk to a SOAP or JSON service... Tuscany provides a data binding
> >>> transformation capability, handling the necessary conversions between
> >>> the databindings automatically, as long as the supporters of
> particular
> >>> databindings provide us with the right transformers.
> >>>
> >>> We currently support transformations between Axiom, SDO, Jax-WS, JSON,
> >>> and XMLBeans. However I'd recommend to not go crazy with
> >>> databindings in
> >>> a single application and try to stick to one or two to avoid any
> >>> surprises, since none of these databindings are perfect...
> >>>
> >>>>   *  how is the mapping between the soap call and the java  method
> >>>> invocation specified ?
> >>>>       I know how JAX-WS can be used to specify the web methods, xml
> >>>> mapping, but how can
> >>>>      you configure this in SCA ?
> >>>
> >>> The mapping depends on which databinding you're using. If you're using
> >>> JAX-WS, its mapping rules will be used, if you're using SDO, the data
> >>> mapping is defined by the SDO spec, if you're using Axiom, well...
> >>> everything maps to an Axiom element :)
> >>>
> >>> If your service interface is a Java interface, we'll introspect it to
> >>> figure which databinding you're using.
> >>>
> >>> You can also declare the databinding in your SCA composite assembly,
> >>> when there is no Java interface to introspect for example, like this:
> >>> <reference name="EchoReference" promote="ComponentB/echoReference">
> >>>        <interface.wsdl
> >>> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
> >>>            wsdli:wsdlLocation="http://example.com/echo.wsdl
> >>> wsdl/echo.wsdl">
> >>>            <db:databinding
> >>> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
> >>> name="org.apache.axiom.om.OMElement" />
> >>>        </interface.wsdl>
> >>>        <e:binding.echo/>
> >>>    </reference>
> >>>
> >>>> This is also needed when you want to
> >>>> translate a java call
> >>>>     to an xml invocation (when using client proxies / references to
> >>>> other
> >>>> components).
> >>>>
> >>>
> >>> I didn't quite get that part. If your SCA component is a Java
> >>> component,
> >>> and as an application developer you just want to use Java interfaces
> >>> and
> >>> don't know anything about WSDL or XSD, I guess you shouldn't have to
> >>> know that the underlying runtime infrastructure uses XML to transport
> >>> your business data, but I'm not sure I understand the scenario you're
> >>> talking about here...
> >>>
> >>>>
> >>>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >>>>>
> >>>>> Guillaume Nodet wrote:
> >>>>> > Copying tuscany dev list ...
> >>>>> >
> >>>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
> >>>>> >>
> >>>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> >>>>> >> > Thanks, great work !
> >>>>> >> >
> >>>>> >> > Sorry about these problems, but I guess this is a direct
> >>>>> >> consequence of
> >>>>> >> it
> >>>>> >> > being sandboxed :-(
> >>>>> >> > So you'll find that the SE is not complete, but the idea was to
> >>>>> >> implement a
> >>>>> >> > JBI binding for tuscany
> >>>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC,
> >>>>> the
> >>>>> >> provider
> >>>>> >> > part was working
> >>>>> >> > somewhat but I think the consumer part is missing (being able
> >>>>> to call
> >>>>> >> > external services through java
> >>>>> >> > proxies).
> >>>>> >> >
> >>>>> >> > I guess I stopped because I did not completely understood how
> >>>>> the xml
> >>>>> >> > mapping and java / wsdl
> >>>>> >> > mapping were to be written.  While I see how JAX-WS works,
> >>>>> there is
> >>>>> >> > something that have escaped
> >>>>> >> > me somehow with SCA (or maybe this isn't specified and that
> >>>>> could
> >>>>> >> be the
> >>>>> >> > reason I did not found it).
> >>>>> >>
> >>>>> >> We should invite some Tuscany folks to discuss this topic so we
> >>>>> can
> >>>>> >> work though it. Is anyone subscribed to the Tuscany dev list
> >>>>> already
> >>>>> >> who can CC that list? I'm at a client site right now and don't
> >>>>> have
> >>>>> >> the time to do it ATM.
> >>>>> >>
> >>>>> >> Bruce
> >>>>> >> --
> >>>>> >> perl -e 'print
> >>>>> >>
> >>>>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >>>>> >> );'
> >>>>> >>
> >>>>> >> Apache Geronimo - http://geronimo.apache.org/
> >>>>> >> Apache ActiveMQ - http://activemq.org/
> >>>>> >> Apache ServiceMix - http://servicemix.org/
> >>>>> >> Castor - http://castor.org/
> >>>>> >>
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> I work on Tuscany, I may be able to help with some of these
> >>>>> questions :)
> >>>>>
> >>>>> The servicemix-sca module under [1] seems to use an old level of
> >>>>> SCA and
> >>>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have
> >>>>> evolved
> >>>>> since then but they are pretty stable now so it might be the right
> >>>>> time
> >>>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or
> >>>>> the
> >>>>> upcoming 0.91 release, which provides the same SPIs).
> >>>>>
> >>>>> Do you have specific Tuscany or SCA questions that we can help with?
> >>>>>
> >>>>> Could you describe the type of application and scenario supported by
> >>>>> servicemix-sca? Is there a sample showing how an application
> >>>>> developer
> >>>>> will use Tuscany and ServiceMix together?
> >>>>>
> >>>>>
> >>>>> [1]
> >>>>>
> >>>>>
> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Jean-Sebastien
>
> --
> Brian ONeill
> Founder, Source Equity (http://www.sourceequity.com)
> Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> mobile:215.588.6024
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

servicemix-sca: updating tuscany dependency

Posted by Brian ONeill <bo...@gmail.com>.
Jean-Sebastien / Guillaume,

I'm about to delve into the tests for servicemix-sca.  As expected, they 
are failing out of the box.  The tests are throwing NPEs down in the 
tuscany code (JavaContextFactoryBuilder).  To make progress, I'd like to 
either upgrade the dependency, or grab the source for the version of 
tuscany that the component is presently using:   
   <tuscany_version>20060317</tuscany_version>

Jean-Sebastien, can you recommend a stable branch to move to?
Guillaume, any suggestions?

-brian

Kit Plummer wrote:
> Hey guys.
>
> Here's the direct link to the use case that Brian referenced:
>
> http://www.jbizint.org/wiki/index.php?title=SCA_translation_layer
>
> ----
>
> I like the target of "deploy this SCA contribution to ServiceMix".
>
> Kit
>
>
> Brian ONeill wrote:
>>
>> Jean-Sebastien,
>>
>> It is a pleasure meeting you.
>>
>> Yes.  I/we was/were thinking exactly along those lines.  In fact, I 
>> have a nearly identical example / write-up here:
>> http://www.jbizint.org/wiki/index.php?title=SCA_Service_Engine
>>
>> I appreciate all the input.  Kit Plummer and I are trying to 
>> resurrect the engine and build on what Guillaume has put in place.  I 
>> hope to get back to this today and will let you know when we have 
>> updates.
>>
>> best regards,
>> brian
>>
>>
>>
>> Jean-Sebastien Delfino wrote:
>>> Guillaume Nodet wrote:
>>>> Hi Jean-Sebastien !
>>>>
>>>> The tuscany SE, as you said, is very old, and has never been finished
>>>> (that's why it is in the sandbox).
>>>> The idea was to be able to deploy SCA annotated POJOs onto it and 
>>>> leverage
>>>> Tuscany to host them.
>>>> I think there are some areas where I'd need a few explanations (see 
>>>> below).
>>>>
>>>> We're investigating how SCA and JBI can be bridged.  I'm thinking 
>>>> that one
>>>> way is to think about SCA as a
>>>> development designer and JBI as the runtime.  So one goal is to 
>>>> investigate
>>>> how we could transform an SCA
>>>> assembly into a JBI Service Assembly: each java component would be 
>>>> deployed
>>>> onto the afore mentionned
>>>> Service Engine, a bpel implementation could be deployed onto the 
>>>> Ode Service
>>>> Engine (etc...) while wires / bindings
>>>> would lead to several Service Units for Binding Components (HTTP, JMS,
>>>> etc...).
>>>
>>> Yes, makes sense.
>>>
>>> To make sure that I got what you said right, let's use an example to
>>> illustrate the approach.
>>>
>>> Here's an SCA composite describing a simple banking app, made of:
>>> - a Java component providing account data
>>> - a BPEL component implementing an Account service
>>> - a StockQuote reference with a Web Service binding used to get the
>>> price of the stock in your account
>>> - a JSON RPC binding providing the Account service to JSON clients
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>>>    targetNamespace="http://mybank"
>>>    xmlns:b="http://mybank"
>>>    name="MyBank">
>>>
>>>    <service name="AccountJSONService" 
>>> promote="AccountServiceComponent">
>>>        <interface.java interface="bigbank.account.AccountService"/>
>>>        <binding.jsonrpc/>
>>>    </service>
>>>
>>>    <component name="AccountServiceComponent">
>>>        <implementation.bpel process="b:AccountProcess"/>
>>>        <reference name="accountDataService"
>>> target="AccountDataServiceComponent"/>
>>>    </component>
>>>
>>>    <component name="AccountDataServiceComponent">
>>>        <implementation.java class="mybank.AccountDataImpl"/>
>>>    </component>
>>>
>>>    <reference name="StockQuoteReference"
>>> promote="AccountServiceComponent/stockQuoteService">
>>>        <binding.ws
>>> wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/> 
>>>
>>>    </reference>
>>>
>>> </composite>
>>>
>>> As an application developer, I write an SCA composite assembly, the 
>>> Java
>>> class and BPEL process, use the WSDL I got for the StockQuote Web
>>> service. Then I package all these artifacts in an SCA contribution (a
>>> form of archive described in the SCA spec).
>>>
>>> When I deploy this SCA contribution to ServiceMix:
>>>
>>> - The Java component gets deployed to a Java SCA Service Engine that
>>> supports the SCA API and Annotations.
>>>
>>> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
>>> accountDataService partner links gets bound as described in the SCA
>>> composite.
>>>
>>> - The StockQuoteReference and AccountJSONService get deployed to
>>> corresponding ServiceMix Binding Components, configured as described in
>>> the SCA composite.
>>>
>>> So, at development time, the application developer uses the SCA
>>> programming model, at deployment time most of the SCA metadata gets
>>> converted to JBI/ServiceMix configuration, at run time a mix of SCA
>>> metadata and ServiceMix configuration is used.
>>>
>>> Where you thinking along the same lines?
>>>
>>>>
>>>> So I have a few questions that you may help answering:
>>>>   * where does SDO comes in ? is it mandatory, optional, unspecified ?
>>>
>>> An SCA component can use (and flow on its business methods) simple Java
>>> types, complex Java types, or any Java data binding technology that's
>>> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
>>>
>>> Some binding technologies come with a databinding baggage, for example
>>> Axis2 will present the data using Axiom.
>>>
>>> Same for some component implementation support runtimes, for example 
>>> the
>>> Bean Scripting Framework uses Axiom (if I remember correctly), BPEL/ODE
>>> uses DOM etc.
>>>
>>> To save a Java application developer to have to know 5 different
>>> databinding technologies just to put 3 or 4 business components 
>>> together
>>> and talk to a SOAP or JSON service... Tuscany provides a data binding
>>> transformation capability, handling the necessary conversions between
>>> the databindings automatically, as long as the supporters of particular
>>> databindings provide us with the right transformers.
>>>
>>> We currently support transformations between Axiom, SDO, Jax-WS, JSON,
>>> and XMLBeans. However I'd recommend to not go crazy with 
>>> databindings in
>>> a single application and try to stick to one or two to avoid any
>>> surprises, since none of these databindings are perfect...
>>>
>>>>   *  how is the mapping between the soap call and the java  method
>>>> invocation specified ?
>>>>       I know how JAX-WS can be used to specify the web methods, xml
>>>> mapping, but how can
>>>>      you configure this in SCA ?
>>>
>>> The mapping depends on which databinding you're using. If you're using
>>> JAX-WS, its mapping rules will be used, if you're using SDO, the data
>>> mapping is defined by the SDO spec, if you're using Axiom, well...
>>> everything maps to an Axiom element :)
>>>
>>> If your service interface is a Java interface, we'll introspect it to
>>> figure which databinding you're using.
>>>
>>> You can also declare the databinding in your SCA composite assembly,
>>> when there is no Java interface to introspect for example, like this:
>>> <reference name="EchoReference" promote="ComponentB/echoReference">
>>>        <interface.wsdl
>>> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
>>>            wsdli:wsdlLocation="http://example.com/echo.wsdl
>>> wsdl/echo.wsdl">
>>>            <db:databinding
>>> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
>>> name="org.apache.axiom.om.OMElement" />
>>>        </interface.wsdl>
>>>        <e:binding.echo/>
>>>    </reference>
>>>
>>>> This is also needed when you want to
>>>> translate a java call
>>>>     to an xml invocation (when using client proxies / references to 
>>>> other
>>>> components).
>>>>
>>>
>>> I didn't quite get that part. If your SCA component is a Java 
>>> component,
>>> and as an application developer you just want to use Java interfaces 
>>> and
>>> don't know anything about WSDL or XSD, I guess you shouldn't have to
>>> know that the underlying runtime infrastructure uses XML to transport
>>> your business data, but I'm not sure I understand the scenario you're
>>> talking about here...
>>>
>>>>
>>>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>>>>
>>>>> Guillaume Nodet wrote:
>>>>> > Copying tuscany dev list ...
>>>>> >
>>>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>>>> >>
>>>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>>>>> >> > Thanks, great work !
>>>>> >> >
>>>>> >> > Sorry about these problems, but I guess this is a direct
>>>>> >> consequence of
>>>>> >> it
>>>>> >> > being sandboxed :-(
>>>>> >> > So you'll find that the SE is not complete, but the idea was to
>>>>> >> implement a
>>>>> >> > JBI binding for tuscany
>>>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, 
>>>>> the
>>>>> >> provider
>>>>> >> > part was working
>>>>> >> > somewhat but I think the consumer part is missing (being able 
>>>>> to call
>>>>> >> > external services through java
>>>>> >> > proxies).
>>>>> >> >
>>>>> >> > I guess I stopped because I did not completely understood how 
>>>>> the xml
>>>>> >> > mapping and java / wsdl
>>>>> >> > mapping were to be written.  While I see how JAX-WS works, 
>>>>> there is
>>>>> >> > something that have escaped
>>>>> >> > me somehow with SCA (or maybe this isn't specified and that 
>>>>> could
>>>>> >> be the
>>>>> >> > reason I did not found it).
>>>>> >>
>>>>> >> We should invite some Tuscany folks to discuss this topic so we 
>>>>> can
>>>>> >> work though it. Is anyone subscribed to the Tuscany dev list 
>>>>> already
>>>>> >> who can CC that list? I'm at a client site right now and don't 
>>>>> have
>>>>> >> the time to do it ATM.
>>>>> >>
>>>>> >> Bruce
>>>>> >> --
>>>>> >> perl -e 'print
>>>>> >> 
>>>>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>>>> >> );'
>>>>> >>
>>>>> >> Apache Geronimo - http://geronimo.apache.org/
>>>>> >> Apache ActiveMQ - http://activemq.org/
>>>>> >> Apache ServiceMix - http://servicemix.org/
>>>>> >> Castor - http://castor.org/
>>>>> >>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I work on Tuscany, I may be able to help with some of these 
>>>>> questions :)
>>>>>
>>>>> The servicemix-sca module under [1] seems to use an old level of 
>>>>> SCA and
>>>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have 
>>>>> evolved
>>>>> since then but they are pretty stable now so it might be the right 
>>>>> time
>>>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or 
>>>>> the
>>>>> upcoming 0.91 release, which provides the same SPIs).
>>>>>
>>>>> Do you have specific Tuscany or SCA questions that we can help with?
>>>>>
>>>>> Could you describe the type of application and scenario supported by
>>>>> servicemix-sca? Is there a sample showing how an application 
>>>>> developer
>>>>> will use Tuscany and ServiceMix together?
>>>>>
>>>>>
>>>>> [1]
>>>>>
>>>>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>>>>
>>>>>
>>>>> -- 
>>>>> Jean-Sebastien

-- 
Brian ONeill
Founder, Source Equity (http://www.sourceequity.com)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024


Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
Hey guys.

Here's the direct link to the use case that Brian referenced:

http://www.jbizint.org/wiki/index.php?title=SCA_translation_layer

----

I like the target of "deploy this SCA contribution to ServiceMix".

Kit


Brian ONeill wrote:
> 
> Jean-Sebastien,
> 
> It is a pleasure meeting you.
> 
> Yes.  I/we was/were thinking exactly along those lines.  In fact, I have 
> a nearly identical example / write-up here:
> http://www.jbizint.org/wiki/index.php?title=SCA_Service_Engine
> 
> I appreciate all the input.  Kit Plummer and I are trying to resurrect 
> the engine and build on what Guillaume has put in place.  I hope to get 
> back to this today and will let you know when we have updates.
> 
> best regards,
> brian
> 
> 
> 
> Jean-Sebastien Delfino wrote:
>> Guillaume Nodet wrote:
>>> Hi Jean-Sebastien !
>>>
>>> The tuscany SE, as you said, is very old, and has never been finished
>>> (that's why it is in the sandbox).
>>> The idea was to be able to deploy SCA annotated POJOs onto it and 
>>> leverage
>>> Tuscany to host them.
>>> I think there are some areas where I'd need a few explanations (see 
>>> below).
>>>
>>> We're investigating how SCA and JBI can be bridged.  I'm thinking 
>>> that one
>>> way is to think about SCA as a
>>> development designer and JBI as the runtime.  So one goal is to 
>>> investigate
>>> how we could transform an SCA
>>> assembly into a JBI Service Assembly: each java component would be 
>>> deployed
>>> onto the afore mentionned
>>> Service Engine, a bpel implementation could be deployed onto the Ode 
>>> Service
>>> Engine (etc...) while wires / bindings
>>> would lead to several Service Units for Binding Components (HTTP, JMS,
>>> etc...).
>>
>> Yes, makes sense.
>>
>> To make sure that I got what you said right, let's use an example to
>> illustrate the approach.
>>
>> Here's an SCA composite describing a simple banking app, made of:
>> - a Java component providing account data
>> - a BPEL component implementing an Account service
>> - a StockQuote reference with a Web Service binding used to get the
>> price of the stock in your account
>> - a JSON RPC binding providing the Account service to JSON clients
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>>    targetNamespace="http://mybank"
>>    xmlns:b="http://mybank"
>>    name="MyBank">
>>
>>    <service name="AccountJSONService" promote="AccountServiceComponent">
>>        <interface.java interface="bigbank.account.AccountService"/>
>>        <binding.jsonrpc/>
>>    </service>
>>
>>    <component name="AccountServiceComponent">
>>        <implementation.bpel process="b:AccountProcess"/>
>>        <reference name="accountDataService"
>> target="AccountDataServiceComponent"/>
>>    </component>
>>
>>    <component name="AccountDataServiceComponent">
>>        <implementation.java class="mybank.AccountDataImpl"/>
>>    </component>
>>
>>    <reference name="StockQuoteReference"
>> promote="AccountServiceComponent/stockQuoteService">
>>        <binding.ws
>> wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/> 
>>
>>    </reference>
>>
>> </composite>
>>
>> As an application developer, I write an SCA composite assembly, the Java
>> class and BPEL process, use the WSDL I got for the StockQuote Web
>> service. Then I package all these artifacts in an SCA contribution (a
>> form of archive described in the SCA spec).
>>
>> When I deploy this SCA contribution to ServiceMix:
>>
>> - The Java component gets deployed to a Java SCA Service Engine that
>> supports the SCA API and Annotations.
>>
>> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
>> accountDataService partner links gets bound as described in the SCA
>> composite.
>>
>> - The StockQuoteReference and AccountJSONService get deployed to
>> corresponding ServiceMix Binding Components, configured as described in
>> the SCA composite.
>>
>> So, at development time, the application developer uses the SCA
>> programming model, at deployment time most of the SCA metadata gets
>> converted to JBI/ServiceMix configuration, at run time a mix of SCA
>> metadata and ServiceMix configuration is used.
>>
>> Where you thinking along the same lines?
>>
>>>
>>> So I have a few questions that you may help answering:
>>>   * where does SDO comes in ? is it mandatory, optional, unspecified ?
>>
>> An SCA component can use (and flow on its business methods) simple Java
>> types, complex Java types, or any Java data binding technology that's
>> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
>>
>> Some binding technologies come with a databinding baggage, for example
>> Axis2 will present the data using Axiom.
>>
>> Same for some component implementation support runtimes, for example the
>> Bean Scripting Framework uses Axiom (if I remember correctly), BPEL/ODE
>> uses DOM etc.
>>
>> To save a Java application developer to have to know 5 different
>> databinding technologies just to put 3 or 4 business components together
>> and talk to a SOAP or JSON service... Tuscany provides a data binding
>> transformation capability, handling the necessary conversions between
>> the databindings automatically, as long as the supporters of particular
>> databindings provide us with the right transformers.
>>
>> We currently support transformations between Axiom, SDO, Jax-WS, JSON,
>> and XMLBeans. However I'd recommend to not go crazy with databindings in
>> a single application and try to stick to one or two to avoid any
>> surprises, since none of these databindings are perfect...
>>
>>>   *  how is the mapping between the soap call and the java  method
>>> invocation specified ?
>>>       I know how JAX-WS can be used to specify the web methods, xml
>>> mapping, but how can
>>>      you configure this in SCA ?
>>
>> The mapping depends on which databinding you're using. If you're using
>> JAX-WS, its mapping rules will be used, if you're using SDO, the data
>> mapping is defined by the SDO spec, if you're using Axiom, well...
>> everything maps to an Axiom element :)
>>
>> If your service interface is a Java interface, we'll introspect it to
>> figure which databinding you're using.
>>
>> You can also declare the databinding in your SCA composite assembly,
>> when there is no Java interface to introspect for example, like this:
>> <reference name="EchoReference" promote="ComponentB/echoReference">
>>        <interface.wsdl
>> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
>>            wsdli:wsdlLocation="http://example.com/echo.wsdl
>> wsdl/echo.wsdl">
>>            <db:databinding
>> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
>> name="org.apache.axiom.om.OMElement" />
>>        </interface.wsdl>
>>        <e:binding.echo/>
>>    </reference>
>>
>>> This is also needed when you want to
>>> translate a java call
>>>     to an xml invocation (when using client proxies / references to 
>>> other
>>> components).
>>>
>>
>> I didn't quite get that part. If your SCA component is a Java component,
>> and as an application developer you just want to use Java interfaces and
>> don't know anything about WSDL or XSD, I guess you shouldn't have to
>> know that the underlying runtime infrastructure uses XML to transport
>> your business data, but I'm not sure I understand the scenario you're
>> talking about here...
>>
>>>
>>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>>>
>>>> Guillaume Nodet wrote:
>>>> > Copying tuscany dev list ...
>>>> >
>>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>>> >>
>>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>>>> >> > Thanks, great work !
>>>> >> >
>>>> >> > Sorry about these problems, but I guess this is a direct
>>>> >> consequence of
>>>> >> it
>>>> >> > being sandboxed :-(
>>>> >> > So you'll find that the SE is not complete, but the idea was to
>>>> >> implement a
>>>> >> > JBI binding for tuscany
>>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>>>> >> provider
>>>> >> > part was working
>>>> >> > somewhat but I think the consumer part is missing (being able 
>>>> to call
>>>> >> > external services through java
>>>> >> > proxies).
>>>> >> >
>>>> >> > I guess I stopped because I did not completely understood how 
>>>> the xml
>>>> >> > mapping and java / wsdl
>>>> >> > mapping were to be written.  While I see how JAX-WS works, 
>>>> there is
>>>> >> > something that have escaped
>>>> >> > me somehow with SCA (or maybe this isn't specified and that could
>>>> >> be the
>>>> >> > reason I did not found it).
>>>> >>
>>>> >> We should invite some Tuscany folks to discuss this topic so we can
>>>> >> work though it. Is anyone subscribed to the Tuscany dev list already
>>>> >> who can CC that list? I'm at a client site right now and don't have
>>>> >> the time to do it ATM.
>>>> >>
>>>> >> Bruce
>>>> >> --
>>>> >> perl -e 'print
>>>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>>> >> );'
>>>> >>
>>>> >> Apache Geronimo - http://geronimo.apache.org/
>>>> >> Apache ActiveMQ - http://activemq.org/
>>>> >> Apache ServiceMix - http://servicemix.org/
>>>> >> Castor - http://castor.org/
>>>> >>
>>>>
>>>> Hi,
>>>>
>>>> I work on Tuscany, I may be able to help with some of these 
>>>> questions :)
>>>>
>>>> The servicemix-sca module under [1] seems to use an old level of SCA 
>>>> and
>>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have 
>>>> evolved
>>>> since then but they are pretty stable now so it might be the right time
>>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
>>>> upcoming 0.91 release, which provides the same SPIs).
>>>>
>>>> Do you have specific Tuscany or SCA questions that we can help with?
>>>>
>>>> Could you describe the type of application and scenario supported by
>>>> servicemix-sca? Is there a sample showing how an application developer
>>>> will use Tuscany and ServiceMix together?
>>>>
>>>>
>>>> [1]
>>>>
>>>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>>>
>>>>
>>>> -- 
>>>> Jean-Sebastien
>>>>
>>>>
>>>
>>>
>>
>>
> 
> 

Re: servicemix-sca now compiling

Posted by Brian ONeill <bo...@gmail.com>.
Jean-Sebastien,

It is a pleasure meeting you.

Yes.  I/we was/were thinking exactly along those lines.  In fact, I have 
a nearly identical example / write-up here:
http://www.jbizint.org/wiki/index.php?title=SCA_Service_Engine

I appreciate all the input.  Kit Plummer and I are trying to resurrect 
the engine and build on what Guillaume has put in place.  I hope to get 
back to this today and will let you know when we have updates.

best regards,
brian



Jean-Sebastien Delfino wrote:
> Guillaume Nodet wrote:
>> Hi Jean-Sebastien !
>>
>> The tuscany SE, as you said, is very old, and has never been finished
>> (that's why it is in the sandbox).
>> The idea was to be able to deploy SCA annotated POJOs onto it and 
>> leverage
>> Tuscany to host them.
>> I think there are some areas where I'd need a few explanations (see 
>> below).
>>
>> We're investigating how SCA and JBI can be bridged.  I'm thinking 
>> that one
>> way is to think about SCA as a
>> development designer and JBI as the runtime.  So one goal is to 
>> investigate
>> how we could transform an SCA
>> assembly into a JBI Service Assembly: each java component would be 
>> deployed
>> onto the afore mentionned
>> Service Engine, a bpel implementation could be deployed onto the Ode 
>> Service
>> Engine (etc...) while wires / bindings
>> would lead to several Service Units for Binding Components (HTTP, JMS,
>> etc...).
>
> Yes, makes sense.
>
> To make sure that I got what you said right, let's use an example to
> illustrate the approach.
>
> Here's an SCA composite describing a simple banking app, made of:
> - a Java component providing account data
> - a BPEL component implementing an Account service
> - a StockQuote reference with a Web Service binding used to get the
> price of the stock in your account
> - a JSON RPC binding providing the Account service to JSON clients
>
> <?xml version="1.0" encoding="UTF-8"?>
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>    targetNamespace="http://mybank"
>    xmlns:b="http://mybank"
>    name="MyBank">
>
>    <service name="AccountJSONService" promote="AccountServiceComponent">
>        <interface.java interface="bigbank.account.AccountService"/>
>        <binding.jsonrpc/>
>    </service>
>
>    <component name="AccountServiceComponent">
>        <implementation.bpel process="b:AccountProcess"/>
>        <reference name="accountDataService"
> target="AccountDataServiceComponent"/>
>    </component>
>
>    <component name="AccountDataServiceComponent">
>        <implementation.java class="mybank.AccountDataImpl"/>
>    </component>
>
>    <reference name="StockQuoteReference"
> promote="AccountServiceComponent/stockQuoteService">
>        <binding.ws
> wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/> 
>
>    </reference>
>
> </composite>
>
> As an application developer, I write an SCA composite assembly, the Java
> class and BPEL process, use the WSDL I got for the StockQuote Web
> service. Then I package all these artifacts in an SCA contribution (a
> form of archive described in the SCA spec).
>
> When I deploy this SCA contribution to ServiceMix:
>
> - The Java component gets deployed to a Java SCA Service Engine that
> supports the SCA API and Annotations.
>
> - The BPEL component gets deployed to a BPEL Service Engine. The BPEL
> accountDataService partner links gets bound as described in the SCA
> composite.
>
> - The StockQuoteReference and AccountJSONService get deployed to
> corresponding ServiceMix Binding Components, configured as described in
> the SCA composite.
>
> So, at development time, the application developer uses the SCA
> programming model, at deployment time most of the SCA metadata gets
> converted to JBI/ServiceMix configuration, at run time a mix of SCA
> metadata and ServiceMix configuration is used.
>
> Where you thinking along the same lines?
>
>>
>> So I have a few questions that you may help answering:
>>   * where does SDO comes in ? is it mandatory, optional, unspecified ?
>
> An SCA component can use (and flow on its business methods) simple Java
> types, complex Java types, or any Java data binding technology that's
> convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.
>
> Some binding technologies come with a databinding baggage, for example
> Axis2 will present the data using Axiom.
>
> Same for some component implementation support runtimes, for example the
> Bean Scripting Framework uses Axiom (if I remember correctly), BPEL/ODE
> uses DOM etc.
>
> To save a Java application developer to have to know 5 different
> databinding technologies just to put 3 or 4 business components together
> and talk to a SOAP or JSON service... Tuscany provides a data binding
> transformation capability, handling the necessary conversions between
> the databindings automatically, as long as the supporters of particular
> databindings provide us with the right transformers.
>
> We currently support transformations between Axiom, SDO, Jax-WS, JSON,
> and XMLBeans. However I'd recommend to not go crazy with databindings in
> a single application and try to stick to one or two to avoid any
> surprises, since none of these databindings are perfect...
>
>>   *  how is the mapping between the soap call and the java  method
>> invocation specified ?
>>       I know how JAX-WS can be used to specify the web methods, xml
>> mapping, but how can
>>      you configure this in SCA ?
>
> The mapping depends on which databinding you're using. If you're using
> JAX-WS, its mapping rules will be used, if you're using SDO, the data
> mapping is defined by the SDO spec, if you're using Axiom, well...
> everything maps to an Axiom element :)
>
> If your service interface is a Java interface, we'll introspect it to
> figure which databinding you're using.
>
> You can also declare the databinding in your SCA composite assembly,
> when there is no Java interface to introspect for example, like this:
> <reference name="EchoReference" promote="ComponentB/echoReference">
>        <interface.wsdl
> interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
>            wsdli:wsdlLocation="http://example.com/echo.wsdl
> wsdl/echo.wsdl">
>            <db:databinding
> xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
> name="org.apache.axiom.om.OMElement" />
>        </interface.wsdl>
>        <e:binding.echo/>
>    </reference>
>
>> This is also needed when you want to
>> translate a java call
>>     to an xml invocation (when using client proxies / references to 
>> other
>> components).
>>
>
> I didn't quite get that part. If your SCA component is a Java component,
> and as an application developer you just want to use Java interfaces and
> don't know anything about WSDL or XSD, I guess you shouldn't have to
> know that the underlying runtime infrastructure uses XML to transport
> your business data, but I'm not sure I understand the scenario you're
> talking about here...
>
>>
>> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>>
>>> Guillaume Nodet wrote:
>>> > Copying tuscany dev list ...
>>> >
>>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>> >>
>>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>>> >> > Thanks, great work !
>>> >> >
>>> >> > Sorry about these problems, but I guess this is a direct
>>> >> consequence of
>>> >> it
>>> >> > being sandboxed :-(
>>> >> > So you'll find that the SE is not complete, but the idea was to
>>> >> implement a
>>> >> > JBI binding for tuscany
>>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>>> >> provider
>>> >> > part was working
>>> >> > somewhat but I think the consumer part is missing (being able 
>>> to call
>>> >> > external services through java
>>> >> > proxies).
>>> >> >
>>> >> > I guess I stopped because I did not completely understood how 
>>> the xml
>>> >> > mapping and java / wsdl
>>> >> > mapping were to be written.  While I see how JAX-WS works, 
>>> there is
>>> >> > something that have escaped
>>> >> > me somehow with SCA (or maybe this isn't specified and that could
>>> >> be the
>>> >> > reason I did not found it).
>>> >>
>>> >> We should invite some Tuscany folks to discuss this topic so we can
>>> >> work though it. Is anyone subscribed to the Tuscany dev list already
>>> >> who can CC that list? I'm at a client site right now and don't have
>>> >> the time to do it ATM.
>>> >>
>>> >> Bruce
>>> >> --
>>> >> perl -e 'print
>>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>>> >> );'
>>> >>
>>> >> Apache Geronimo - http://geronimo.apache.org/
>>> >> Apache ActiveMQ - http://activemq.org/
>>> >> Apache ServiceMix - http://servicemix.org/
>>> >> Castor - http://castor.org/
>>> >>
>>>
>>> Hi,
>>>
>>> I work on Tuscany, I may be able to help with some of these 
>>> questions :)
>>>
>>> The servicemix-sca module under [1] seems to use an old level of SCA 
>>> and
>>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have 
>>> evolved
>>> since then but they are pretty stable now so it might be the right time
>>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
>>> upcoming 0.91 release, which provides the same SPIs).
>>>
>>> Do you have specific Tuscany or SCA questions that we can help with?
>>>
>>> Could you describe the type of application and scenario supported by
>>> servicemix-sca? Is there a sample showing how an application developer
>>> will use Tuscany and ServiceMix together?
>>>
>>>
>>> [1]
>>>
>>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>>
>>>
>>> -- 
>>> Jean-Sebastien
>>>
>>>
>>
>>
>
>


-- 
Brian ONeill
Founder, Source Equity (http://www.sourceequity.com)
Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
mobile:215.588.6024


Re: servicemix-sca now compiling

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Guillaume Nodet wrote:
> Hi Jean-Sebastien !
>
> The tuscany SE, as you said, is very old, and has never been finished
> (that's why it is in the sandbox).
> The idea was to be able to deploy SCA annotated POJOs onto it and 
> leverage
> Tuscany to host them.
> I think there are some areas where I'd need a few explanations (see 
> below).
>
> We're investigating how SCA and JBI can be bridged.  I'm thinking that 
> one
> way is to think about SCA as a
> development designer and JBI as the runtime.  So one goal is to 
> investigate
> how we could transform an SCA
> assembly into a JBI Service Assembly: each java component would be 
> deployed
> onto the afore mentionned
> Service Engine, a bpel implementation could be deployed onto the Ode 
> Service
> Engine (etc...) while wires / bindings
> would lead to several Service Units for Binding Components (HTTP, JMS,
> etc...).

Yes, makes sense.

To make sure that I got what you said right, let's use an example to
illustrate the approach.

Here's an SCA composite describing a simple banking app, made of:
- a Java component providing account data
- a BPEL component implementing an Account service
- a StockQuote reference with a Web Service binding used to get the
price of the stock in your account
- a JSON RPC binding providing the Account service to JSON clients

<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
    targetNamespace="http://mybank"
    xmlns:b="http://mybank"
    name="MyBank">

    <service name="AccountJSONService" promote="AccountServiceComponent">
        <interface.java interface="bigbank.account.AccountService"/>
        <binding.jsonrpc/>
    </service>

    <component name="AccountServiceComponent">
        <implementation.bpel process="b:AccountProcess"/>
        <reference name="accountDataService"
target="AccountDataServiceComponent"/>
    </component>

    <component name="AccountDataServiceComponent">
        <implementation.java class="mybank.AccountDataImpl"/>
    </component>

    <reference name="StockQuoteReference"
promote="AccountServiceComponent/stockQuoteService">
        <binding.ws
wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
    </reference>

</composite>

As an application developer, I write an SCA composite assembly, the Java
class and BPEL process, use the WSDL I got for the StockQuote Web
service. Then I package all these artifacts in an SCA contribution (a
form of archive described in the SCA spec).

When I deploy this SCA contribution to ServiceMix:

- The Java component gets deployed to a Java SCA Service Engine that
supports the SCA API and Annotations.

- The BPEL component gets deployed to a BPEL Service Engine. The BPEL
accountDataService partner links gets bound as described in the SCA
composite.

- The StockQuoteReference and AccountJSONService get deployed to
corresponding ServiceMix Binding Components, configured as described in
the SCA composite.

So, at development time, the application developer uses the SCA
programming model, at deployment time most of the SCA metadata gets
converted to JBI/ServiceMix configuration, at run time a mix of SCA
metadata and ServiceMix configuration is used.

Where you thinking along the same lines?

>
> So I have a few questions that you may help answering:
>   * where does SDO comes in ? is it mandatory, optional, unspecified ?

An SCA component can use (and flow on its business methods) simple Java
types, complex Java types, or any Java data binding technology that's
convenient for it to use, including Axiom, XMLBeans, SDO, JAX-WS etc.

Some binding technologies come with a databinding baggage, for example
Axis2 will present the data using Axiom.

Same for some component implementation support runtimes, for example the
Bean Scripting Framework uses Axiom (if I remember correctly), BPEL/ODE
uses DOM etc.

To save a Java application developer to have to know 5 different
databinding technologies just to put 3 or 4 business components together
and talk to a SOAP or JSON service... Tuscany provides a data binding
transformation capability, handling the necessary conversions between
the databindings automatically, as long as the supporters of particular
databindings provide us with the right transformers.

We currently support transformations between Axiom, SDO, Jax-WS, JSON,
and XMLBeans. However I'd recommend to not go crazy with databindings in
a single application and try to stick to one or two to avoid any
surprises, since none of these databindings are perfect...

>   *  how is the mapping between the soap call and the java  method
> invocation specified ?
>       I know how JAX-WS can be used to specify the web methods, xml
> mapping, but how can
>      you configure this in SCA ?

The mapping depends on which databinding you're using. If you're using
JAX-WS, its mapping rules will be used, if you're using SDO, the data
mapping is defined by the SDO spec, if you're using Axiom, well...
everything maps to an Axiom element :)

If your service interface is a Java interface, we'll introspect it to
figure which databinding you're using.

You can also declare the databinding in your SCA composite assembly,
when there is no Java interface to introspect for example, like this:
<reference name="EchoReference" promote="ComponentB/echoReference">
        <interface.wsdl
interface="http://example.com/echo.wsdl#wsdl.interface(EchoPortType)"
            wsdli:wsdlLocation="http://example.com/echo.wsdl
wsdl/echo.wsdl">
            <db:databinding
xmlns:db="http://tuscany.apache.org/xmlns/sca/databinding/1.0"
name="org.apache.axiom.om.OMElement" />
        </interface.wsdl>
        <e:binding.echo/>
    </reference>

> This is also needed when you want to
> translate a java call
>     to an xml invocation (when using client proxies / references to other
> components).
>

I didn't quite get that part. If your SCA component is a Java component,
and as an application developer you just want to use Java interfaces and
don't know anything about WSDL or XSD, I guess you shouldn't have to
know that the underlying runtime infrastructure uses XML to transport
your business data, but I'm not sure I understand the scenario you're
talking about here...

>
> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>
>> Guillaume Nodet wrote:
>> > Copying tuscany dev list ...
>> >
>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>> >>
>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> >> > Thanks, great work !
>> >> >
>> >> > Sorry about these problems, but I guess this is a direct
>> >> consequence of
>> >> it
>> >> > being sandboxed :-(
>> >> > So you'll find that the SE is not complete, but the idea was to
>> >> implement a
>> >> > JBI binding for tuscany
>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>> >> provider
>> >> > part was working
>> >> > somewhat but I think the consumer part is missing (being able to 
>> call
>> >> > external services through java
>> >> > proxies).
>> >> >
>> >> > I guess I stopped because I did not completely understood how 
>> the xml
>> >> > mapping and java / wsdl
>> >> > mapping were to be written.  While I see how JAX-WS works, there is
>> >> > something that have escaped
>> >> > me somehow with SCA (or maybe this isn't specified and that could
>> >> be the
>> >> > reason I did not found it).
>> >>
>> >> We should invite some Tuscany folks to discuss this topic so we can
>> >> work though it. Is anyone subscribed to the Tuscany dev list already
>> >> who can CC that list? I'm at a client site right now and don't have
>> >> the time to do it ATM.
>> >>
>> >> Bruce
>> >> --
>> >> perl -e 'print
>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> );'
>> >>
>> >> Apache Geronimo - http://geronimo.apache.org/
>> >> Apache ActiveMQ - http://activemq.org/
>> >> Apache ServiceMix - http://servicemix.org/
>> >> Castor - http://castor.org/
>> >>
>>
>> Hi,
>>
>> I work on Tuscany, I may be able to help with some of these questions :)
>>
>> The servicemix-sca module under [1] seems to use an old level of SCA and
>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have evolved
>> since then but they are pretty stable now so it might be the right time
>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
>> upcoming 0.91 release, which provides the same SPIs).
>>
>> Do you have specific Tuscany or SCA questions that we can help with?
>>
>> Could you describe the type of application and scenario supported by
>> servicemix-sca? Is there a sample showing how an application developer
>> will use Tuscany and ServiceMix together?
>>
>>
>> [1]
>>
>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>
>>
>> -- 
>> Jean-Sebastien
>>
>>
>
>


-- 
Jean-Sebastien



Re: servicemix-sca now compiling

Posted by Guillaume Nodet <gn...@gmail.com>.
On 6/25/07, Kit Plummer <ch...@raytheon.com> wrote:
>
> I believe it is probably necessary for whatever the relationship is - to
> accommodate the SCA composite as is.  It should not be necessary to
> modify anything in the SCA app to deploy against SM.  Are you guys
> thinking the same thing?  Guillaume, is that what you are implying by
> the "transform" idea?


Somehting like that.  I'd like to have this transformation tool quite
independant from servicemix so that it could be run offline, from
a designer or from servicemix itself maybe.  But hopefully all the needed
data will be provided by the SCA assembly itself.

I don't really see the SCA assembly being itself a JBI SU and deployed
as is onto a service engine.

Jean-Sebastien, yes this "upgrade" should happen.  The existing test
> cases fail because of the out-of-dateness.
>
> From my user-centric perspective I think the value of the SCA-JBI
> relationship here is just as Guillaume described it.  SMX acts as the
> integration platform for heterogeneous services (SCA, JBI or/and WS).
> We'd like to be able to pull an SCA service/app out of the toolbox and
> plug 'er into the bus right along side services from the JBI shelf.
> Choreography over orchestration in this case - via the configuration of
> the JBI container - and the xbean/servicemix configurations in the SUs.


Not sure if we agree here.  There are several different things in SCA.
The SCA java spec defines a programming model, as JAX-WS + EJB3
defines one too.  I'd like to have a JBI SE for this programming model so
that you can deploy an SCA annotated POJO.

However, I would find it strange if you collocate a full tuscany runtime
inside a JBI SE: i'd really want all the exchanges targeted at the SCA
component going trough the NMR, and this means that the SOAP HTTP
binding.  The consequence is that the SE handles the java POJOs while
the HTTP BC handles the SCA wires definitions.  And it leads to the fact
that the SCA assembly needs to be transformed into several SUs packaged
in a SA.   This is really important when you want to import an assembly
containing
a few POJOs and a BPEL process for example: the BPEL is deployed onto
Apache Ode and the POJOs on the Tuscany SE.

Hopefully this makes things a bit more clear.  I just don't want to start
with a huge misunderstanding.

Guillaume Nodet wrote:
> > Hi Jean-Sebastien !
> >
> > The tuscany SE, as you said, is very old, and has never been finished
> > (that's why it is in the sandbox).
> > The idea was to be able to deploy SCA annotated POJOs onto it and
> leverage
> > Tuscany to host them.
> > I think there are some areas where I'd need a few explanations (see
> below).
> >
> > We're investigating how SCA and JBI can be bridged.  I'm thinking that
> one
> > way is to think about SCA as a
> > development designer and JBI as the runtime.  So one goal is to
> investigate
> > how we could transform an SCA
> > assembly into a JBI Service Assembly: each java component would be
> deployed
> > onto the afore mentionned
> > Service Engine, a bpel implementation could be deployed onto the Ode
> > Service
> > Engine (etc...) while wires / bindings
> > would lead to several Service Units for Binding Components (HTTP, JMS,
> > etc...).
> >
> > So I have a few questions that you may help answering:
> >   * where does SDO comes in ? is it mandatory, optional, unspecified ?
> >   *  how is the mapping between the soap call and the java  method
> > invocation specified ?
> >       I know how JAX-WS can be used to specify the web methods, xml
> > mapping, but how can
> >      you configure this in SCA ?   This is also needed when you want to
> > translate a java call
> >     to an xml invocation (when using client proxies / references to
> other
> > components).
> >
> >
> > On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
> >>
> >> Guillaume Nodet wrote:
> >> > Copying tuscany dev list ...
> >> >
> >> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
> >> >>
> >> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> >> >> > Thanks, great work !
> >> >> >
> >> >> > Sorry about these problems, but I guess this is a direct
> >> >> consequence of
> >> >> it
> >> >> > being sandboxed :-(
> >> >> > So you'll find that the SE is not complete, but the idea was to
> >> >> implement a
> >> >> > JBI binding for tuscany
> >> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
> >> >> provider
> >> >> > part was working
> >> >> > somewhat but I think the consumer part is missing (being able to
> >> call
> >> >> > external services through java
> >> >> > proxies).
> >> >> >
> >> >> > I guess I stopped because I did not completely understood how the
> >> xml
> >> >> > mapping and java / wsdl
> >> >> > mapping were to be written.  While I see how JAX-WS works, there
> is
> >> >> > something that have escaped
> >> >> > me somehow with SCA (or maybe this isn't specified and that could
> >> >> be the
> >> >> > reason I did not found it).
> >> >>
> >> >> We should invite some Tuscany folks to discuss this topic so we can
> >> >> work though it. Is anyone subscribed to the Tuscany dev list already
> >> >> who can CC that list? I'm at a client site right now and don't have
> >> >> the time to do it ATM.
> >> >>
> >> >> Bruce
> >> >> --
> >> >> perl -e 'print
> >> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> >> );'
> >> >>
> >> >> Apache Geronimo - http://geronimo.apache.org/
> >> >> Apache ActiveMQ - http://activemq.org/
> >> >> Apache ServiceMix - http://servicemix.org/
> >> >> Castor - http://castor.org/
> >> >>
> >>
> >> Hi,
> >>
> >> I work on Tuscany, I may be able to help with some of these questions
> :)
> >>
> >> The servicemix-sca module under [1] seems to use an old level of SCA
> and
> >> Tuscany. The SCA programming model and the Tuscany SCA SPIs have
> evolved
> >> since then but they are pretty stable now so it might be the right time
> >> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
> >> upcoming 0.91 release, which provides the same SPIs).
> >>
> >> Do you have specific Tuscany or SCA questions that we can help with?
> >>
> >> Could you describe the type of application and scenario supported by
> >> servicemix-sca? Is there a sample showing how an application developer
> >> will use Tuscany and ServiceMix together?
> >>
> >>
> >> [1]
> >>
> >>
> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/
> >>
> >>
> >> --
> >> Jean-Sebastien
> >>
> >>
> >
> >
>



-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
I believe it is probably necessary for whatever the relationship is - to 
accommodate the SCA composite as is.  It should not be necessary to 
modify anything in the SCA app to deploy against SM.  Are you guys 
thinking the same thing?  Guillaume, is that what you are implying by 
the "transform" idea?

Jean-Sebastien, yes this "upgrade" should happen.  The existing test 
cases fail because of the out-of-dateness.

 From my user-centric perspective I think the value of the SCA-JBI 
relationship here is just as Guillaume described it.  SMX acts as the 
integration platform for heterogeneous services (SCA, JBI or/and WS). 
We'd like to be able to pull an SCA service/app out of the toolbox and 
plug 'er into the bus right along side services from the JBI shelf. 
Choreography over orchestration in this case - via the configuration of 
the JBI container - and the xbean/servicemix configurations in the SUs.



Guillaume Nodet wrote:
> Hi Jean-Sebastien !
> 
> The tuscany SE, as you said, is very old, and has never been finished
> (that's why it is in the sandbox).
> The idea was to be able to deploy SCA annotated POJOs onto it and leverage
> Tuscany to host them.
> I think there are some areas where I'd need a few explanations (see below).
> 
> We're investigating how SCA and JBI can be bridged.  I'm thinking that one
> way is to think about SCA as a
> development designer and JBI as the runtime.  So one goal is to investigate
> how we could transform an SCA
> assembly into a JBI Service Assembly: each java component would be deployed
> onto the afore mentionned
> Service Engine, a bpel implementation could be deployed onto the Ode 
> Service
> Engine (etc...) while wires / bindings
> would lead to several Service Units for Binding Components (HTTP, JMS,
> etc...).
> 
> So I have a few questions that you may help answering:
>   * where does SDO comes in ? is it mandatory, optional, unspecified ?
>   *  how is the mapping between the soap call and the java  method
> invocation specified ?
>       I know how JAX-WS can be used to specify the web methods, xml
> mapping, but how can
>      you configure this in SCA ?   This is also needed when you want to
> translate a java call
>     to an xml invocation (when using client proxies / references to other
> components).
> 
> 
> On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>>
>> Guillaume Nodet wrote:
>> > Copying tuscany dev list ...
>> >
>> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>> >>
>> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> >> > Thanks, great work !
>> >> >
>> >> > Sorry about these problems, but I guess this is a direct
>> >> consequence of
>> >> it
>> >> > being sandboxed :-(
>> >> > So you'll find that the SE is not complete, but the idea was to
>> >> implement a
>> >> > JBI binding for tuscany
>> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>> >> provider
>> >> > part was working
>> >> > somewhat but I think the consumer part is missing (being able to 
>> call
>> >> > external services through java
>> >> > proxies).
>> >> >
>> >> > I guess I stopped because I did not completely understood how the 
>> xml
>> >> > mapping and java / wsdl
>> >> > mapping were to be written.  While I see how JAX-WS works, there is
>> >> > something that have escaped
>> >> > me somehow with SCA (or maybe this isn't specified and that could
>> >> be the
>> >> > reason I did not found it).
>> >>
>> >> We should invite some Tuscany folks to discuss this topic so we can
>> >> work though it. Is anyone subscribed to the Tuscany dev list already
>> >> who can CC that list? I'm at a client site right now and don't have
>> >> the time to do it ATM.
>> >>
>> >> Bruce
>> >> --
>> >> perl -e 'print
>> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> >> );'
>> >>
>> >> Apache Geronimo - http://geronimo.apache.org/
>> >> Apache ActiveMQ - http://activemq.org/
>> >> Apache ServiceMix - http://servicemix.org/
>> >> Castor - http://castor.org/
>> >>
>>
>> Hi,
>>
>> I work on Tuscany, I may be able to help with some of these questions :)
>>
>> The servicemix-sca module under [1] seems to use an old level of SCA and
>> Tuscany. The SCA programming model and the Tuscany SCA SPIs have evolved
>> since then but they are pretty stable now so it might be the right time
>> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
>> upcoming 0.91 release, which provides the same SPIs).
>>
>> Do you have specific Tuscany or SCA questions that we can help with?
>>
>> Could you describe the type of application and scenario supported by
>> servicemix-sca? Is there a sample showing how an application developer
>> will use Tuscany and ServiceMix together?
>>
>>
>> [1]
>>
>> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/ 
>>
>>
>> -- 
>> Jean-Sebastien
>>
>>
> 
> 

Re: servicemix-sca now compiling

Posted by Guillaume Nodet <gn...@gmail.com>.
Hi Jean-Sebastien !

The tuscany SE, as you said, is very old, and has never been finished
(that's why it is in the sandbox).
The idea was to be able to deploy SCA annotated POJOs onto it and leverage
Tuscany to host them.
I think there are some areas where I'd need a few explanations (see below).

We're investigating how SCA and JBI can be bridged.  I'm thinking that one
way is to think about SCA as a
development designer and JBI as the runtime.  So one goal is to investigate
how we could transform an SCA
assembly into a JBI Service Assembly: each java component would be deployed
onto the afore mentionned
Service Engine, a bpel implementation could be deployed onto the Ode Service
Engine (etc...) while wires / bindings
would lead to several Service Units for Binding Components (HTTP, JMS,
etc...).

So I have a few questions that you may help answering:
   * where does SDO comes in ? is it mandatory, optional, unspecified ?
   *  how is the mapping between the soap call and the java  method
invocation specified ?
       I know how JAX-WS can be used to specify the web methods, xml
mapping, but how can
      you configure this in SCA ?   This is also needed when you want to
translate a java call
     to an xml invocation (when using client proxies / references to other
components).


On 6/25/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> Guillaume Nodet wrote:
> > Copying tuscany dev list ...
> >
> > On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
> >>
> >> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> >> > Thanks, great work !
> >> >
> >> > Sorry about these problems, but I guess this is a direct
> >> consequence of
> >> it
> >> > being sandboxed :-(
> >> > So you'll find that the SE is not complete, but the idea was to
> >> implement a
> >> > JBI binding for tuscany
> >> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
> >> provider
> >> > part was working
> >> > somewhat but I think the consumer part is missing (being able to call
> >> > external services through java
> >> > proxies).
> >> >
> >> > I guess I stopped because I did not completely understood how the xml
> >> > mapping and java / wsdl
> >> > mapping were to be written.  While I see how JAX-WS works, there is
> >> > something that have escaped
> >> > me somehow with SCA (or maybe this isn't specified and that could
> >> be the
> >> > reason I did not found it).
> >>
> >> We should invite some Tuscany folks to discuss this topic so we can
> >> work though it. Is anyone subscribed to the Tuscany dev list already
> >> who can CC that list? I'm at a client site right now and don't have
> >> the time to do it ATM.
> >>
> >> Bruce
> >> --
> >> perl -e 'print
> >> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> >> );'
> >>
> >> Apache Geronimo - http://geronimo.apache.org/
> >> Apache ActiveMQ - http://activemq.org/
> >> Apache ServiceMix - http://servicemix.org/
> >> Castor - http://castor.org/
> >>
>
> Hi,
>
> I work on Tuscany, I may be able to help with some of these questions :)
>
> The servicemix-sca module under [1] seems to use an old level of SCA and
> Tuscany. The SCA programming model and the Tuscany SCA SPIs have evolved
> since then but they are pretty stable now so it might be the right time
> to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the
> upcoming 0.91 release, which provides the same SPIs).
>
> Do you have specific Tuscany or SCA questions that we can help with?
>
> Could you describe the type of application and scenario supported by
> servicemix-sca? Is there a sample showing how an application developer
> will use Tuscany and ServiceMix together?
>
>
> [1]
>
> http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/
>
> --
> Jean-Sebastien
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca now compiling

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Guillaume Nodet wrote:
> Copying tuscany dev list ...
>
> On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>
>> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> > Thanks, great work !
>> >
>> > Sorry about these problems, but I guess this is a direct 
>> consequence of
>> it
>> > being sandboxed :-(
>> > So you'll find that the SE is not complete, but the idea was to
>> implement a
>> > JBI binding for tuscany
>> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>> provider
>> > part was working
>> > somewhat but I think the consumer part is missing (being able to call
>> > external services through java
>> > proxies).
>> >
>> > I guess I stopped because I did not completely understood how the xml
>> > mapping and java / wsdl
>> > mapping were to be written.  While I see how JAX-WS works, there is
>> > something that have escaped
>> > me somehow with SCA (or maybe this isn't specified and that could 
>> be the
>> > reason I did not found it).
>>
>> We should invite some Tuscany folks to discuss this topic so we can
>> work though it. Is anyone subscribed to the Tuscany dev list already
>> who can CC that list? I'm at a client site right now and don't have
>> the time to do it ATM.
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://activemq.org/
>> Apache ServiceMix - http://servicemix.org/
>> Castor - http://castor.org/
>>

Hi,

I work on Tuscany, I may be able to help with some of these questions :)

The servicemix-sca module under [1] seems to use an old level of SCA and 
Tuscany. The SCA programming model and the Tuscany SCA SPIs have evolved 
since then but they are pretty stable now so it might be the right time 
to port servicemix-sca to SCA 1.0 and the Tuscany 0.90 release (or the 
upcoming 0.91 release, which provides the same SPIs).

Do you have specific Tuscany or SCA questions that we can help with?

Could you describe the type of application and scenario supported by 
servicemix-sca? Is there a sample showing how an application developer 
will use Tuscany and ServiceMix together?


[1] 
http://svn.apache.org/repos/asf/incubator/servicemix/trunk/sandbox/servicemix-sca/

-- 
Jean-Sebastien


Re: servicemix-sca now compiling

Posted by Kit Plummer <ch...@raytheon.com>.
A simple first step might be to get everything past CheckStyle and 
PMD...so it doesn't take a "non-normal" SM config/install/deploy.


Guillaume Nodet wrote:
> Copying tuscany dev list ...
> 
> On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>>
>> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
>> > Thanks, great work !
>> >
>> > Sorry about these problems, but I guess this is a direct consequence of
>> it
>> > being sandboxed :-(
>> > So you'll find that the SE is not complete, but the idea was to
>> implement a
>> > JBI binding for tuscany
>> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
>> provider
>> > part was working
>> > somewhat but I think the consumer part is missing (being able to call
>> > external services through java
>> > proxies).
>> >
>> > I guess I stopped because I did not completely understood how the xml
>> > mapping and java / wsdl
>> > mapping were to be written.  While I see how JAX-WS works, there is
>> > something that have escaped
>> > me somehow with SCA (or maybe this isn't specified and that could be 
>> the
>> > reason I did not found it).
>>
>> We should invite some Tuscany folks to discuss this topic so we can
>> work though it. Is anyone subscribed to the Tuscany dev list already
>> who can CC that list? I'm at a client site right now and don't have
>> the time to do it ATM.
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://activemq.org/
>> Apache ServiceMix - http://servicemix.org/
>> Castor - http://castor.org/
>>
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Tuscany - ServiceMix integration, was: servicemix-sca now compiling

Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
Guillaume Nodet wrote:
> Copying tuscany dev list ...
>

The discussion is now continuing on the servicemix-dev list:
http://www.mail-archive.com/servicemix-dev@geronimo.apache.org/msg02159.html

-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: servicemix-sca now compiling

Posted by Guillaume Nodet <gn...@gmail.com>.
Copying tuscany dev list ...

On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>
> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> > Thanks, great work !
> >
> > Sorry about these problems, but I guess this is a direct consequence of
> it
> > being sandboxed :-(
> > So you'll find that the SE is not complete, but the idea was to
> implement a
> > JBI binding for tuscany
> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
> provider
> > part was working
> > somewhat but I think the consumer part is missing (being able to call
> > external services through java
> > proxies).
> >
> > I guess I stopped because I did not completely understood how the xml
> > mapping and java / wsdl
> > mapping were to be written.  While I see how JAX-WS works, there is
> > something that have escaped
> > me somehow with SCA (or maybe this isn't specified and that could be the
> > reason I did not found it).
>
> We should invite some Tuscany folks to discuss this topic so we can
> work though it. Is anyone subscribed to the Tuscany dev list already
> who can CC that list? I'm at a client site right now and don't have
> the time to do it ATM.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca now compiling

Posted by Guillaume Nodet <gn...@gmail.com>.
Copying tuscany dev list ...

On 6/22/07, Bruce Snyder <br...@gmail.com> wrote:
>
> On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> > Thanks, great work !
> >
> > Sorry about these problems, but I guess this is a direct consequence of
> it
> > being sandboxed :-(
> > So you'll find that the SE is not complete, but the idea was to
> implement a
> > JBI binding for tuscany
> > so that you can deploy SCA annotated POJOs on this SE.  IIRC, the
> provider
> > part was working
> > somewhat but I think the consumer part is missing (being able to call
> > external services through java
> > proxies).
> >
> > I guess I stopped because I did not completely understood how the xml
> > mapping and java / wsdl
> > mapping were to be written.  While I see how JAX-WS works, there is
> > something that have escaped
> > me somehow with SCA (or maybe this isn't specified and that could be the
> > reason I did not found it).
>
> We should invite some Tuscany folks to discuss this topic so we can
> work though it. Is anyone subscribed to the Tuscany dev list already
> who can CC that list? I'm at a client site right now and don't have
> the time to do it ATM.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Re: servicemix-sca now compiling

Posted by Bruce Snyder <br...@gmail.com>.
On 6/22/07, Guillaume Nodet <gn...@gmail.com> wrote:
> Thanks, great work !
>
> Sorry about these problems, but I guess this is a direct consequence of it
> being sandboxed :-(
> So you'll find that the SE is not complete, but the idea was to implement a
> JBI binding for tuscany
> so that you can deploy SCA annotated POJOs on this SE.  IIRC, the provider
> part was working
> somewhat but I think the consumer part is missing (being able to call
> external services through java
> proxies).
>
> I guess I stopped because I did not completely understood how the xml
> mapping and java / wsdl
> mapping were to be written.  While I see how JAX-WS works, there is
> something that have escaped
> me somehow with SCA (or maybe this isn't specified and that could be the
> reason I did not found it).

We should invite some Tuscany folks to discuss this topic so we can
work though it. Is anyone subscribed to the Tuscany dev list already
who can CC that list? I'm at a client site right now and don't have
the time to do it ATM.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: servicemix-sca now compiling

Posted by Guillaume Nodet <gn...@gmail.com>.
Thanks, great work !

Sorry about these problems, but I guess this is a direct consequence of it
being sandboxed :-(
So you'll find that the SE is not complete, but the idea was to implement a
JBI binding for tuscany
so that you can deploy SCA annotated POJOs on this SE.  IIRC, the provider
part was working
somewhat but I think the consumer part is missing (being able to call
external services through java
proxies).

I guess I stopped because I did not completely understood how the xml
mapping and java / wsdl
mapping were to be written.  While I see how JAX-WS works, there is
something that have escaped
me somehow with SCA (or maybe this isn't specified and that could be the
reason I did not found it).

On 6/22/07, Brian ONeill <bo...@gmail.com> wrote:
>
>
> I submitted another patch:
> https://issues.apache.org/activemq/browse/SM-975
>
> This patch adds the http://servicemix.org/m2-repo/ repository to the
> pom.xml in servicemix-sca to resolve the timestamped dependencies.
>
> With this patch servicemix-sca now compiles.
>
> best,
> brian
>
> --
> Brian ONeill
> Founder, Source Equity (http://www.sourceequity.com)
> Technical Architect, Gestalt LLC (http://www.gestalt-llc.com)
> mobile:215.588.6024
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/