[ 
https://issues.apache.org/jira/browse/TUSCANY-2556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625248#action_12625248
 ] 

Jean-Sebastien Delfino commented on TUSCANY-2556:
-------------------------------------------------

I've added a HelloWorldClient5 that shows how to code a client that doesn't 
depend on Tuscany APIs at all, just uses the standard SCA spec programming 
model. The client just runs its client logic in a method annotated with an SCA 
@Init. The client program can then just be launched using the Tuscany launcher 
as described.

I've also added a calculator-lean sample that shows the same pattern applied to 
our calculator sample.  The calculator sample is just an assembly of POJOs 
without any references to remote services. I thought it'd be useful to show 
that with calculator as well as helloworld-ws-reference-lean sample may confuse 
the story with the fact that it uses a reference to a remote Web Service.

I've described how to launch calculator-lean sample using the Tuscany launcher 
in the README.

> Need a sample that shows how to bootstrap and use an SCA reference in a 
> client 
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2556
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2556
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Samples
>            Reporter: Jean-Sebastien Delfino
>            Assignee: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>
> Most of our client samples involve a Client program with a main method, code 
> to get a proxy to a 'Client' proxy component, and code in the client proxy 
> component to relay method calls to a remote service.
> That's too complicated, see java/sca/samples/helloworld-ws-reference for an 
> example of that pattern.
> The current SCA programming model allows for a simpler usage, allowing client 
> code to use references directly, simply by representing the client itself as 
> a component.
> I'd like to contribute a new sample to show that simpler usage of the SCA 
> programming model.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to