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

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

I don't see a test.html in sample-calculator-lean.

About the CalculatorClient component, the idea is that clients can be 
represented as normal components, leveraging the normal wiring, policy etc. 
resolution, and allowing the application developer to code that client like 
other components instead of having to use special client APIs. So, yes, the 
CalculatorClient component is needed :)

CalculatorTest is a test case, different from a client. The idea is to show:
- a client, which eventually gets shipped in an application, it's not a test 
case and should not be complicated by test considerations;
- a Junit test case, showing how app developers can use a similar component 
pattern to develop test cases.

> 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