Examples of Main


Examples of org.jnp.server.Main

         {
            return;
         }
         try
         {
            jndiServer = new Main();
            namingBean = new NamingBeanImpl();
            jndiServer.setNamingInfo(namingBean);
            executor = Executors.newCachedThreadPool();
            jndiServer.setLookupExector(executor);
            jndiServer.setPort(port);
View Full Code Here

Examples of org.jnp.server.Main

            log.info("Remoting JNDI detector starting JNDI server instance since none where specified via configuration.");
            log.info("Remoting JNDI server started on host + " + host + " and port " + port);

            //If no server information provided, then start one of our own by default
            Main server = new Main();
            server.setPort(port);
            server.setBindAddress(host);
            server.start();

            contextFactory = NamingContextFactory.class.getName();
            urlPackage = "org.jboss.naming:org.jnp.interfaces";
         }
         catch(Exception e)
View Full Code Here

Examples of org.jnp.server.Main

        LOG.debug("System properties: " + System.getProperties());
        Server.start();
    }
   
    private Server() {
        jnpServer = new Main("org.rhq.jndi.access.test.server");
    }
View Full Code Here

Examples of org.jnp.server.Main

   private Main startJndiServer() throws Exception {
      // Create an in-memory jndi
      NamingServer namingServer = new NamingServer();
      NamingContext.setLocal(namingServer);
      Main namingMain = new Main();
      namingMain.setInstallGlobalService(true);
      namingMain.setPort(-1);
      namingMain.start();
      return namingMain;
   }
View Full Code Here

Examples of org.jnp.server.Main

public class RestartNamingService extends NamingService
{
   @Override
   protected void startService() throws Exception
   {
      Main main = getNamingServer();
      main.setUseGlobalService(false);
      main.setInstallGlobalService(false);
     
      super.startService();
   }
View Full Code Here

Examples of org.jnp.server.Main

   protected void setUp() throws Exception
   {
      super.setUp();
      namingBean = new NamingBeanImpl();
      namingServer = new Main();
      namingServer.setPort(10099);
      namingServer.setNamingInfo(namingBean);
      namingBean.start();
      namingServer.start();
View Full Code Here

Examples of org.jnp.server.Main

   public void afterConfigurationBuilt(Mappings mappings, Dialect dialect) {
      if (bindToJndi) {
         try {
            // Create an in-memory jndi
            namingServer = new SingletonNamingServer();
            namingMain = new Main();
            namingMain.setInstallGlobalService(true);
            namingMain.setPort(-1);
            namingMain.start();
            props = new Properties();
            props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
View Full Code Here

Examples of org.jruby.Main

        // populate commandline with NG-provided stuff
        config.processArguments(context.getArgs());
        config.setCurrentDirectory(context.getWorkingDirectory());
        config.setEnvironment(context.getEnv());

        Main main = new Main(config);
        return main.run();
    }
View Full Code Here

Examples of org.jruby.Main

                processInput = null;
            }
        }
        public void run() {
            try {
                this.result = new Main(config).run(argArray);
            } catch (Throwable throwable) {
                throwable.printStackTrace(this.config.getError());
                this.result = -1;
            } finally {
                this.config.getOutput().close();
View Full Code Here

Examples of org.kairosdb.core.Main

      if (h2db.exists())
      {
        FileUtils.deleteDirectory(h2db);
      }

      kairos = new Main(properties);
      kairos.startServices();
      setStarted();
    }
    catch (KairosDBException e)
    {
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.