Package org.apache.tuscany.sca.host.embedded

Examples of org.apache.tuscany.sca.host.embedded.SCADomain


     * <p>
     * OSOA specification doesn't have such requirement.
     */
    @Test(expected = ServiceRuntimeException.class)
    public void ASM60001_n() throws Exception {
        SCADomain domain =
            SCADomain.newInstance(LOCAL_DOMAIN_URI, "/", "composite.composite", "compositecopy.composite");
        domain.getService(BService.class, "BComponent");
        domain.getService(CService.class, "CComponent");
        domain.close();
        domain = null;
    }
View Full Code Here


   
    @Reference
    public HelloWorldService helloWorldService;

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient3.composite");
       
        scaDomain.getService(HelloWorldClient3.class, "HelloWorldClient3").doit(args);

        scaDomain.close();
    }
View Full Code Here

    public void setContext(ComponentContext context) {
        clientContext = context;
    }
   
    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient4.composite");

        HelloWorldService helloWorldService = clientContext.getService(HelloWorldService.class, "helloWorldService");
        String value = helloWorldService.getGreetings("World");
        System.out.println(value);

        scaDomain.close();
    }
View Full Code Here

   
    @Reference
    public HelloWorldService helloWorldService;

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient5.composite");
       
        scaDomain.close();
    }
View Full Code Here

import org.apache.tuscany.sca.host.embedded.SCADomain;

public class Launch {
    public static void main(String[] args) throws Exception {
        System.out.println("Starting ...");
        SCADomain scaDomain = SCADomain.newInstance("customer.composite");
        System.out.println("store.composite ready for big business !!!");
        System.in.read();
        System.out.println("Stopping ...");
        scaDomain.close();
        System.out.println();
    }
View Full Code Here

import org.apache.tuscany.sca.host.embedded.SCADomain;

public class Launch {
    public static void main(String[] args) throws Exception {
        System.out.println("Starting ...");
        SCADomain scaDomain = SCADomain.newInstance("customer.composite");
        System.out.println("customer.composite ready for big business !!!");
        System.out.println("url : http://localhost:8080/customer.html");
        System.in.read();
        System.out.println("Stopping ...");
        scaDomain.close();
        System.out.println();
    }
View Full Code Here

    public HelloWorldClient2() {
        client = this;
    }
   
    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient2.composite");
       
        client.doit(args);

        scaDomain.close();
    }
View Full Code Here

    public void setHelloWorldService(HelloWorldService service) {
        helloWorldService = service;
    }

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient.composite");

        String value = helloWorldService.getGreetings("World");
        System.out.println(value);

        scaDomain.close();
    }
View Full Code Here

*/
public class EchoBindingClient {
   
    public static void main(String[] args) throws Exception {

        SCADomain scaDomain  = SCADomain.newInstance("EchoBinding.composite");
       
        // Call the echo service component which will, in turn, call a reference
        // with an echo binding. The echo binding will echo the given string.
        Echo service = scaDomain.getService(Echo.class, "EchoComponent");
        String echoString = service.echo("foo");
        System.out.println("Echo reference = " + echoString );

        // Call the echo server. This will dispatch the call to a service with an
        // echo binding. The echo binding will pass the call to the echo component.
        echoString = EchoServer.getServer().sendReceive("EchoComponent/EchoService", "bar");
        System.out.println("Echo service = " + echoString );
       
        scaDomain.close();

    }
View Full Code Here

* @version $Rev: 538844 $ $Date: 2007-05-17 14:42:08 +0530 (Thu, 17 May 2007) $
*/
public class EchoDataBindingClient {
    public static void main(String[] args) throws Exception {

        SCADomain scaDomain  = SCADomain.newInstance("EchoDataBinding.composite");
       
        Interface1 componentA = scaDomain.getService(Interface1.class, "ComponentA");
        String response = componentA.call("<message><foo>123</foo></message>");
        String response1= componentA.call1("<message><foo>123</foo></message>");
       
       
        System.out.println("call  response = " + response );
        System.out.println("call1 response = " + response1 );
      
        scaDomain.close();

    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.host.embedded.SCADomain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.