Hello,

as you can see in the code from above, I've commented out the call to
comp.start(), but the example still works fine. Why isn't it necessary to call
this method?

public static void main(String[] args) throws Exception {

                // Create a component with an HTTP server connector
                // The component encompasses the whole application
                Component comp = new Component();
                comp.getServers().add(Protocol.HTTP, 8080);

                // Attach the application to the default host and start it
            comp.getDefaultHost().attach("", new Application());
            //comp.start();

}

thanks for your help,
Thomas

Reply via email to