Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 8555 invoked from network); 13 Mar 2000 10:27:39 -0000 Received: from hd1.vsnl.net.in (202.54.30.1) by locus.apache.org with SMTP; 13 Mar 2000 10:27:39 -0000 Received: from postmark.net ([203.197.21.31]) by hd1.vsnl.net.in (8.8.8/8.8.8) with ESMTP id PAA23340 for ; Mon, 13 Mar 2000 15:51:51 +0530 (IST) Message-ID: <38CC9F15.84521F1A@postmark.net> Date: Mon, 13 Mar 2000 15:56:05 +0800 From: Harish X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "tomcat-dev@jakarta.apache.org" Subject: Re: which classes to use to modify server.xml References: <36E5F2AF.85FDC989@postmark.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, This is for a scenario in which Tomcat is running on a machine(which wasn't started from my program) and i need to connect to it from my program and do an addition/modification/deletion of Contexts. I'm doing a look up in the RMI Registry to get a reference to the HttpServer(Tomcat "HttpServer" class) running[All my program knows is the host/port number of the registry].I have overridden the HttpServer.java, added a "getContextManager()" method using which i get a ref. to the context Manager. This,i use to get the info all the contexts i wish to modify(or delete etc.) I have a strong feeling that there's a neater way of doing it instead of overriding HttpServer.java, something which i'm not able to figure out. Do I need to use a Connector(excuse me if i'm wrong)? someone please enlighten me, Thanks, harish Harish wrote: > > Hi, > I'm trying to write a plug-in which takes in a WAR file as input and > modifies the server.xml, copies the WAR into the directory of > jakarta-tomcat and then restart the server(or do i have the option of > hot deployment, without any restarts?) > > Can some one please tell me which packages/classes of tomcat can be > used to do this? > > Thanks, > harish