Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 63539 invoked from network); 15 Feb 2011 14:08:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 14:08:14 -0000 Received: (qmail 81284 invoked by uid 500); 15 Feb 2011 14:08:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 81180 invoked by uid 500); 15 Feb 2011 14:08:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 81145 invoked by uid 99); 15 Feb 2011 14:08:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 14:08:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of afkham@gmail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 14:08:00 +0000 Received: by fxm12 with SMTP id 12so216304fxm.18 for ; Tue, 15 Feb 2011 06:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=AgoLkO4+/eQQdU9G3yjT5/y2y3k/Gfdfjh09Ed89oIw=; b=IdPx43QTM974iruQ3yJ8SiNE33t99yeiUJR6x/N7Loq24kMQ5r7nBywFNJPt1egDrr LrYTl6alIqKGzuN4c1TJ1X7GDEWezTgPEpW0kWHdtRY2efkqOFiVpx4A0LyJCQsoJ77w eH5U2pmQz3qfnzohaX1Ga01aqs+G1+u2ayxso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=wF9hY7A4jMAdbZ330L46nI6DKQhNFVrep1dWqdk+YM4/kvq3c0JqXLmAZom0LyZiCK 11yUC4mgO5lbLqhzf1Xe8pX1ImPCICsVwO0p+zIP/JueMq047nRkASUsk0ZN21A9Zk26 DXHs/gL1HuvyR+JLss1bBlsV3H48comORPjJQ= Received: by 10.223.79.74 with SMTP id o10mr565353fak.63.1297778860357; Tue, 15 Feb 2011 06:07:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.74.2 with HTTP; Tue, 15 Feb 2011 06:07:18 -0800 (PST) In-Reply-To: <99C8B2929B39C24493377AC7A121E21F9A47FAFA2C@USEA-EXCH8.na.uis.unisys.com> References: <99C8B2929B39C24493377AC7A121E21F9A47FAFA2C@USEA-EXCH8.na.uis.unisys.com> From: Afkham Azeez Date: Tue, 15 Feb 2011 19:37:18 +0530 Message-ID: Subject: Re: Embedding Tomcat 7 To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf30434544f7f89d049c52af1c X-Virus-Checked: Checked by ClamAV on apache.org --20cf30434544f7f89d049c52af1c Content-Type: text/plain; charset=ISO-8859-1 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/* * email: **azeez@wso2.com* * cell: +94 77 3320919 blog: **http://blog.afkham.org* * twitter: **http://twitter.com/afkham_azeez* * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* * * --20cf30434544f7f89d049c52af1c--