Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 28851 invoked from network); 26 Apr 2005 20:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2005 20:22:52 -0000 Received: (qmail 62510 invoked by uid 500); 26 Apr 2005 20:23:10 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 62489 invoked by uid 500); 26 Apr 2005 20:23:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 62473 invoked by uid 99); 26 Apr 2005 20:23:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of smithsa@sericontech.com designates 69.59.195.3 as permitted sender) Received: from pyramid-02.kattare.com (HELO pyramid-02.kattare.com) (69.59.195.3) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 26 Apr 2005 13:23:09 -0700 Received: from localhost (localhost [127.0.0.1]) by pyramid-02.kattare.com (8.12.10/8.12.11) with ESMTP id j3QKMLXA010084 for ; Tue, 26 Apr 2005 13:22:21 -0700 Received: from 24.112.119.112 ( [24.112.119.112]) as user smithsa@localhost by www.kattare.com with HTTP; Tue, 26 Apr 2005 16:22:21 -0400 Message-ID: <1114546941.426ea2fd94ba9@www.kattare.com> Date: Tue, 26 Apr 2005 16:22:21 -0400 From: "Sander A. Smith" To: tomcat-user@jakarta.apache.org Subject: Embedded Tomcat - adding Connectors on the fly MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have a copy of Tomcat embedded inside my application, and it runs great. During the processing, I'd like to open another port to service requests on. The documentation on the Embedded object states: "After normal operations have begun, you can add and remove Connectors, Engines, Hosts, and Contexts on the fly." Great, that's exactly what I want to do. However, I'm finding that if I try to add a new Connector to my Embedded object, I still can't connect on that port. Here's my code: CoyoteConnector connector = (CoyoteConnector)embedded.createConnector ((InetAddress)null, newPort, false); // not sure why/if these are necessary // I don't call these when I set up the initial port to listen on connector.initialize(); connector.start(); embedded.addConnector(connector); I after running this code I call embedded.findConnectors(), my new connector shows up in the isAvailable state. However, I can't connect on the new port. Any ideas on what could be going wrong? I'm running Tomcat 5.0.28. Sander Smith -- Sander A. Smith President Sericon Technology Inc. 71 Marquette Ave. Toronto, Ontario M6A 1X8 (416)781-3988 www.sericontech.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org