Examples of registerRemoteService()


Examples of org.eclipse.ecf.remoteservice.IOSGiRemoteServiceContainerAdapter.registerRemoteService()

    // Register remote service via ECF container adapter to create
    // remote service registration
    IRemoteServiceRegistration remoteRegistration = null;
    if (containerAdapter instanceof IOSGiRemoteServiceContainerAdapter) {
      IOSGiRemoteServiceContainerAdapter osgiContainerAdapter = (IOSGiRemoteServiceContainerAdapter) containerAdapter;
      remoteRegistration = osgiContainerAdapter.registerRemoteService(
          exportedInterfaces, serviceReference, PropertiesUtil
              .createDictionaryFromMap(remoteServiceProperties));
    } else {
      Object service = AccessController
          .doPrivileged(new PrivilegedAction<Object>() {
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

            public Object run() {
              return getClientBundleContext().getService(
                  serviceReference);
            }
          });
      remoteRegistration = containerAdapter.registerRemoteService(
          exportedInterfaces, service, PropertiesUtil
              .createDictionaryFromMap(remoteServiceProperties));
    }
   
    endpointDescriptionProperties.put(
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

    server.start(PATH, KEEPALIVE);
   
    GenericServerContainer serverContainer = server.getServerContainer(0);
    IRemoteServiceContainerAdapter adapter = (IRemoteServiceContainerAdapter) serverContainer.getAdapter(IRemoteServiceContainerAdapter.class);
    Assert.isNotNull(adapter);
    registration = adapter.registerRemoteService(new String[] { IConcatService.class.getName() }, new ConcatService(), null);
    Assert.isNotNull(registration);
    System.out.println("generic server started with id="+serverContainer.getID());
  }
 
  public IRemoteServiceRegistration getConcatServiceRegistration() {
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

    server.start(PATH, KEEPALIVE);
   
    SSLGenericServerContainer serverContainer = server.getServerContainer(0);
    IRemoteServiceContainerAdapter adapter = (IRemoteServiceContainerAdapter) serverContainer.getAdapter(IRemoteServiceContainerAdapter.class);
    Assert.isNotNull(adapter);
    registration = adapter.registerRemoteService(new String[] { IConcatService.class.getName() }, new ConcatService(), null);
    Assert.isNotNull(registration);
    System.out.println("generic server started with id="+serverContainer.getID());
  }
 
  public IRemoteServiceRegistration getConcatServiceRegistration() {
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

    // Create the data processor implementation
    dataProcessorImpl = new DataProcessorImpl(container.getID());

    // Register data processor as remote services (with queue consumer
    // container)
    dataProcessorRemoteServiceRegistration = remoteServiceContainerAdapter
        .registerRemoteService(new String[] { IDataProcessor.class
            .getName() }, dataProcessorImpl, null);

    // Report success of registration
    System.out
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

        "ecf.r_osgi.peer");
    // Get remote service container adapter
    IRemoteServiceContainerAdapter containerAdapter = (IRemoteServiceContainerAdapter) container
        .getAdapter(IRemoteServiceContainerAdapter.class);
    // Register remote service
    serviceRegistration = containerAdapter.registerRemoteService(
        new String[] { IHello.class.getName() }, new Hello(), null);
    System.out.println("IHello RemoteService registered");
  }

  /*
 
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter.registerRemoteService()

    // the LOAD_BALANCING_SERVICE_PROPERTY set to "true" specifies that for
    // this container the remote service
    // requests are proxied and forwarded to the JMS queue (where they are
    // load balanced among the n servers
    // that are consumers from that queue)
    dataProcessorServiceHostRegistration = remoteServiceAdapter
        .registerRemoteService(new String[] { IDataProcessor.class
            .getName() }, null, properties);
   
    System.out.println("LB Service Host: DataProcessor Registered via ECF Remote Services topic="+topicId);
    // wait for remote service requests until stopped
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.