tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup SimpleStartup.java
Date Fri, 11 Feb 2000 00:34:44 GMT
costin      00/02/10 16:34:44

  Added:       src/share/org/apache/tomcat/startup SimpleStartup.java
  Log:
  Added SimpleStartup.java, for people embeding tomcat in other applications
  or IDEs.
  
  You can use the core api to add connectors, interceptors, etc - if you don't
  like the defaults.
  
  Revision  Changes    Path
  1.1                  jakarta-tomcat/src/share/org/apache/tomcat/startup/SimpleStartup.java
  
  Index: SimpleStartup.java
  ===================================================================
  package org.apache.tomcat.startup;
  
  import java.beans.*;
  import java.io.*;
  import java.io.IOException;
  import java.lang.reflect.*;
  import java.util.Hashtable;
  import java.util.*;
  import java.net.*;
  import org.apache.tomcat.util.*;
  import org.apache.tomcat.util.xml.*;
  import org.apache.tomcat.core.*;
  
  // Used to stop tomcat
  import org.apache.tomcat.service.TcpEndpointConnector;
  import org.apache.tomcat.service.connector.Ajp12ConnectionHandler;
  
  /**
   * Simple starter for Tomcat.
   *
   * @author costin@dnt.ro
   */
  public class SimpleStartup {
  
      SimpleStartup() {
      }
  
      public static void main(String args[] ) {
  	try {
  	    ContextManager cm=new ContextManager();
  	    cm.start();
  	} catch(Exception ex ) {
  	    ex.printStackTrace();
  	}
  
      }
  }
  
  
  
  

Mime
View raw message