Package org.apache.oodt.cas.catalog.server.channel

Examples of org.apache.oodt.cas.catalog.server.channel.CommunicationChannelServerFactory


    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { configFile }, false);
    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
        List<CmdLineOptionInstance> optionInstances = CmdLineOptionUtils.loadValidateAndHandleInstances(appContext, args);
        CmdLineOptionInstance instance = CmdLineOptionUtils.getOptionInstanceByName("serverFactoryBeanId", optionInstances);
        CommunicationChannelServerFactory serverFactory = (CommunicationChannelServerFactory) appContext.getBean(instance.getValues().get(0), CommunicationChannelServerFactory.class);
        CommunicationChannelServer communicationChannelServer = serverFactory.createCommunicationChannelServer();
    communicationChannelServer.startup();
    System.out.println("\n---- Launched '" +  communicationChannelServer.getClass().getCanonicalName() + "' on port: " + communicationChannelServer.getPort() + " ----");

//   
//   
View Full Code Here


    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    PrintStream ps = new PrintStream(System.out);
        ps.println("ServerFactories:");
        for (String serverId : appContext.getBeanNamesForType(CommunicationChannelServerFactory.class)) {
          CommunicationChannelServerFactory serverFactory = (CommunicationChannelServerFactory) appContext.getBean(serverId, CommunicationChannelServerFactory.class);
            ps.println("  ServerFactory:");
            ps.println("    Id: " + serverId);
            ps.println("    Port: " + serverFactory.getPort());
            ps.println();
        }
        ps.close();
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.server.channel.CommunicationChannelServerFactory

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.