Ejemplo n.º 1
0
        /**
         * Stops the clerks.
         * @throws ConfigurationException
         */
        public void stop()
        {
            log.info("Stopping UDDI Client " + clientConfig.getClientName());
            releaseResources();
            UDDIClientContainer.removeClerkManager(this.getName());

            //If running in embedded mode

            /*if (InVMTransport.class.getCanonicalName().equals(getClientConfig().getHomeNode().getProxyTransport())) {
             *  log.info("Shutting down embedded Server");
             *  stopEmbeddedServer();
             * }*/
            log.info("UDDI Clerks shutdown completed for manager " + clientConfig.getClientName());
        }
Ejemplo n.º 2
0
        /**
         * Initializes the UDDI Clerk.
         * @throws ConfigurationException
         */
        public void start()
        {
            if (UDDIClientContainer.addClient(this))
            {
                //If running in embedded mode

                /*if (InVMTransport.class.getCanonicalName().equals(getClientConfig().getHomeNode().getProxyTransport())) {
                 *  log.info("Starting embedded Server");
                 *  startEmbeddedServer();
                 * }*/
                if (this.clientConfig.isRegisterOnStartup())
                {
                    //Runnable runnable = new BackGroundRegistration(this);
                    Thread thread = new Thread(new ThreadStart(new BackGroundRegistration(this).run));
                    thread.Start();
                }
            }
        }
Ejemplo n.º 3
0
 /**
  * Manages the clerks. Initiates reading the client configuration from the uddi.xml.
  * @throws ConfigurationException
  */
 public UDDIClient(String configurationFile, Properties properties)
 {
     clientConfig = new ClientConfig(configurationFile, properties);
     UDDIClientContainer.addClient(this);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Manages the clerks. Initiates reading the client configuration from the uddi.xml.
 /// </summary>
 /// <param name="configurationFile"></param>
 public UDDIClient(String configurationFile)
 {
     clientConfig = new ClientConfig(configurationFile);
     UDDIClientContainer.addClient(this);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Default constructor, loads from the default config, META-INF/uddi.xml
 /// </summary>
 public UDDIClient()
 {
     clientConfig = new ClientConfig(CONFIG_FILE, properties);
     UDDIClientContainer.addClient(this);
 }