Package org.apache.muse.ws.resource.sg.remote

Examples of org.apache.muse.ws.resource.sg.remote.ServiceGroupClient


            String contextPath = webAppRoot + "/ServiceGroup";
           
            URI address = getLocalAddress(contextPath, port);
            EndpointReference epr = new EndpointReference(address);
           
            ServiceGroupClient sg = new ServiceGroupClient(epr);
           
            //
            // ping SG, wait a few seconds, then check for members
            // that were added by the simulation factory
            //
            System.out.println("Pinging Muse to initialize the endpoint...");
            sg.getResourcePropertyDocument();
            System.out.println("Waiting 10 seconds while simulation creates WS-resources...");
            Thread.currentThread().sleep(10000);
            System.out.println("Done waiting - reading service group entries...");
           
            //
            // turn on tracing of SOAP messages
            //
            sg.setTrace(true);
           
            WsResourceClient[] members = sg.getMembers();
           
            System.out.println("Addresses of each service group entry:\n");
           
            for (int n = 0; n < members.length; ++n)
                System.out.println(members[n].getEndpointReference().getAddress());
View Full Code Here


            // create proxy - turn on tracing of SOAP messages
            //
            WsResourceClient client = new WsResourceClient(epr);
            client.setTrace(tracing);
           
            ServiceGroupClient sg = new ServiceGroupClient(epr);
            sg.setTrace(tracing);
           
            WsResourceClient[] members = sg.getMembers();
           
            System.out.println("Addresses of each service group entry:\n");
           
            EndpointReference repr = null;
            EndpointReference sepr = null;
View Full Code Here

            String contextPath = webAppRoot + "/ServiceGroup";
           
            URI address = getLocalAddress(contextPath, port);
            EndpointReference epr = new EndpointReference(address);
           
            ServiceGroupClient sg = new ServiceGroupClient(epr);
           
            //
            // ping SG, wait a few seconds, then check for members
            // that were added by the simulation factory
            //
            System.out.println("Pinging Muse to initialize the endpoint...");
            sg.getResourcePropertyDocument();
            System.out.println("Waiting 10 seconds while simulation creates WS-resources...");
            Thread.currentThread().sleep(10000);
            System.out.println("Done waiting - reading service group entries...");
           
            //
            // turn on tracing of SOAP messages
            //
            sg.setTrace(true);
           
            WsResourceClient[] members = sg.getMembers();
           
            System.out.println("Addresses of each service group entry:\n");
           
            for (int n = 0; n < members.length; ++n)
                System.out.println(members[n].getEndpointReference().getAddress());
View Full Code Here

 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

  {   
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference serviceEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(serviceEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Invokes the service.
    WsResourceClient [] resources = adapterClient.getMembers();
 
    String result = (resources.length != 0)
      ? ("QMan has at the moment "+resources.length+" registered resources.")
      : "It seems that there are no managed resource on QMan side...";
   
View Full Code Here

 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

  {   
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(false);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

 
    // 1) Creates an endpoint reference of the adapter service...
    EndpointReference adapterEndpointReference = getAdapterEndpointReference(host, port);
   
    // 2) Creates the Adapter service client...
    ServiceGroupClient adapterClient = new ServiceGroupClient(adapterEndpointReference);
    adapterClient.setTrace(true);
   
    // 3) Retrieves the all registered members (QMan WS-Resources)
    WsResourceClient [] resources = adapterClient.getMembers();

    // Sanity check : we cannot proceed if there are no WS-Resources.
    if (resources.length == 0)
    {
      System.out.println("----------------------------WARNING---------------------------");
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.sg.remote.ServiceGroupClient

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.