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

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

Actually... I just added one more variation that shows how to use 
ComponentContext and get a proxy to the remote service programmatically as an 
alternative to @Reference injection.

Here are links to the 4 samples:
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient.java
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient.composite

http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient2.java
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient2.composite

http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient3.java
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient3.composite

http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/java/helloworld/HelloWorldClient4.java
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-reference-lean/src/main/resources/helloworldwsclient4.composite


> 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