tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Afkham Azeez <afk...@gmail.com>
Subject Re: Embedding Tomcat 7
Date Tue, 15 Feb 2011 14:07:18 GMT
On Tue, Feb 15, 2011 at 6:54 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Afkham Azeez [mailto:afkham@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@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: **azeez@wso2.com* <azeez@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*
*
*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message