Morone, Bill | 6 Jun 2006 01:25

More questions about "serving" html on Tomcat

Gentleman:

More questions.

If I am using Tomcat and the ServerServlet do I have to set it up as the DefaultServer or is it already created that way by the framework?

Do I need to try something like this in my RootContainer?

DefaultServer webServer
                        = new DefaultServer(Protocols.HTTP, "serverConnector", this, 8080);            
                webServer.getName();
                System.out.println("The name of the webSErver is: " + webServer.getName());
        this.addServer(webServer);

Is one of the intitialization params key in getting the connector to serve html?

Is there something else I have to do?

Bill Morone

This message, including any attachments, is intended only for the recipient(s) named above. It may contain confidential and privileged information. If you have received this communication in error, please notify the sender immediately and destroy or delete the original message. Also, please be aware that if you are not the intended recipient, any review, disclosure, copying, distribution or any action or reliance based on this message is prohibited by law.
Jerome Louvel | 6 Jun 2006 09:49

RE: More questions about "serving" html on Tomcat

When using the Servlet embedded mode, the instantiation of your RootContainer will by done via the ServerServlet. So there would be no point in explicitely instantiating a DefaultServer like you propose.
 
Thanks,
Jerome

De : Morone, Bill [mailto:Morone.Bill <at> pennmutual.com]
Envoyé : mardi 6 juin 2006 01:25
À : discuss <at> restlet.tigris.org
Objet : More questions about "serving" html on Tomcat

Gentleman:

More questions.

If I am using Tomcat and the ServerServlet do I have to set it up as the DefaultServer or is it already created that way by the framework?

Do I need to try something like this in my RootContainer?

DefaultServer webServer
                        = new DefaultServer(Protocols.HTTP, "serverConnector", this, 8080);            
                webServer.getName();
                System.out.println("The name of the webSErver is: " + webServer.getName());
        this.addServer(webServer);

Is one of the intitialization params key in getting the connector to serve html?

Is there something else I have to do?

Bill Morone

This message, including any attachments, is intended only for the recipient(s) named above. It may contain confidential and privileged information. If you have received this communication in error, please notify the sender immediately and destroy or delete the original message. Also, please be aware that if you are not the intended recipient, any review, disclosure, copying, distribution or any action or reliance based on this message is prohibited by law.

Gmane