On Tue, Feb 15, 2011 at 6:54 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote:
> > From: Afkham Azeez [mailto:afk...@gmail.com] > > Subject: Embedding Tomcat 7 > > > We need our webapps to be visible through > > multiple connectors. How can this be done? > > Connectors belong to the Service, so you can attach new ones with this: > Tomcat.getService().addConnector() > Thanks Chuck. I was able to figure that out. Also, I noticed a bug in the process. I added all my connectors using the addConnector method. However, Tomcat starts an additional connector on port 8080. So, to avoid that I had to set a dummy connector with no port. tomcat.setConnector(new Connector("HTTP/1.1")); the API would be cleaner if you could provide a method such as; Tomcat.addConnector(String scheme, String port); There is also a problem with creating HTTPS connectors. Earlier, the now deprecated Embedded class automatically sets the "SSLEnabled" property when you call Embedded.createConnector("https"). Now we have to set all such attributes ourselves. So, the Tomcat API could be cleaned up. Perhaps it may be a good idea to move some of the methods in Embedded to Tomcat. The Tomcat.addConnector() method could set these additional properties. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* * *