Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 67536 invoked from network); 23 Aug 2002 16:03:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Aug 2002 16:03:49 -0000 Received: (qmail 16607 invoked by uid 97); 23 Aug 2002 16:03:44 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 16451 invoked by uid 97); 23 Aug 2002 16:03:43 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 16258 invoked by uid 98); 23 Aug 2002 16:03:41 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Fri, 23 Aug 2002 09:03:06 -0700 (PDT) From: "Craig R. McClanahan" To: Tomcat Developers List , Subject: Re: help needed building a Tomcat Connector In-Reply-To: Message-ID: <20020823085943.O42895-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 23 Aug 2002, Mark Hansen wrote: > Date: Fri, 23 Aug 2002 11:43:14 -0400 > From: Mark Hansen > Reply-To: Tomcat Developers List , > khookguy@yahoo.com > To: tomcat-dev@jakarta.apache.org > Subject: help needed building a Tomcat Connector > > I'm building a Tomcat Connector to enable JMS communication with > HttpServlets. > > I'm having problems understanding how the connector properties defined in > server.xml (e.g., port, enableLookups, minProcessors) are set when a > connector class (e.g., HttpConnector) gets loaded. Obviously, my connector, > JmsConnector, will have a variety of JMS specific properties and I want to > be sure that I am setting them in a manner that is consistent with how this > is done for other connectors. > It's magic :-). Actually, its a module called Digester (Tomcat 4.1 and later) or XmlMapper (earlier versions of Tomcat) that looks at the attributes of the element, and matches them up to JavaBeans property setters for the corresponding property names. So, if you have configuration properties "foo" and "bar" that you want to set in the server.xml element, just make sure you have public setters "setFoo()" and "setBar()" for them. For further info about Digester itself, see: http://jakarta.apache.org/commons/digester/api/ > Thanks for your help. > > Sincerely, > > Mark Hansen > khookguy@yahoo.com > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: