Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 16427 invoked from network); 23 Jan 2007 11:11:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 11:11:56 -0000 Received: (qmail 31986 invoked by uid 500); 23 Jan 2007 11:11:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 31954 invoked by uid 500); 23 Jan 2007 11:11:47 -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 31935 invoked by uid 99); 23 Jan 2007 11:11:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 03:11:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jamin.short@gmail.com designates 209.85.132.245 as permitted sender) Received: from [209.85.132.245] (HELO an-out-0708.google.com) (209.85.132.245) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 03:11:38 -0800 Received: by an-out-0708.google.com with SMTP id c8so595316ana for ; Tue, 23 Jan 2007 03:11:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ohNJO5+mxoHthjUMoBVkSeaSU3qoIdVit6CibiM7jDgQs1+HNGRrsM3SlieAAR/ZmMpDH3HSdCfOTNkfT7Pw08jjNjz4yZvHzh37NZmVUdpu9Xl4LVOjRlKnqTza4exn4Lpk9A94vAxBSL9ay8PXqM5SaQV4UMcE398C6by6PYY= Received: by 10.114.13.1 with SMTP id 1mr44171wam.1169550677312; Tue, 23 Jan 2007 03:11:17 -0800 (PST) Received: by 10.114.53.11 with HTTP; Tue, 23 Jan 2007 03:11:17 -0800 (PST) Message-ID: <86aa493a0701230311m2ad03cdfq621ec719675d905d@mail.gmail.com> Date: Tue, 23 Jan 2007 11:11:17 +0000 From: "ben short" Sender: jamin.short@gmail.com To: "Tomcat Users List" Subject: Re: Embedded Tomcat and application communication In-Reply-To: <1169548160.2783.24.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8473751.post@talk.nabble.com> <45B34908.4070603@pidster.com> <8474975.post@talk.nabble.com> <45B36AC4.3090100@pidster.com> <77912E9FD42896419D1CEF15E1C397A56AA421@london.jaguarfreightservices.local> <45B3C9DE.4040900@christopherschultz.net> <77912E9FD42896419D1CEF15E1C397A501AA5505@london.jaguarfreightservices.local> <45B4EDE0.601@christopherschultz.net> <1169548160.2783.24.camel@localhost> X-Google-Sender-Auth: 93042cbfb1a7d6d2 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have done something similar, but used Jetty [1] as I couldn't figure out how to get tomcat to do it.. My application registers a servlet and starts jetty. the servlet gets the interface to the application via a static method. But it all works OK. Maybe you could set the application interface into the ServletConfig somehow and the servlet could grab it in the init method. I hope this is of some help. Ben ps: sorry to mention jetty on a tomcat list ;) [1] http://docs.codehaus.org/display/JETTY/Embedding+Jetty On 1/23/07, Yiannis Mavroukakis wrote: > Oh no, I mean the exact opposite :) > > > ----------------- > | Application | > | | > |---------------| > |Embedded TC | > ----------------- > > The application I am writing this for is a server daemon which has a cli > that enables the user to issue commands to it once it's up and running. > What I want, is to use Tomcat to serve a page that will present the user > with a friendlier way to issue these commands to the app. Since there is > no ready way for embedded Tomcat to "communicate" with the host > application that launched it, I assume that the best way is to do this > via localhost RMI calls from Tomcat to the host application > > > Y. > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Yiannis, > > > > Yiannis Mavroukakis wrote: > > > The scenario is a server daemon that has a cli for runtime > > > configuration and status. > > > > Oh, so you want to be able to reconfigure Tomcat remotely. I assume that > > you are talking about more interesting things than can be done with the > > Tomcat Manager application. > > > > > I intend to use embedded tomcat to replace/augment that cli and I > > > have actually done so succesfully, using RMI but I was wondering > > > whether there was some other solution that allows Tomcat to > > > communicate with the application it's embedded into. > > > > You're reached the limit of my knowledge regarding Tomcat configuration > > capabilities. I've never embedded it or another like that. > > > > - -chris > > > > > Note:__________________________________________________________________ > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. > If you receive this message in error, please immediately delete it and > all copies of it from your system, destroy any hard copies of it and > notify the sender. You must not, directly or indirectly, use, disclose, > distribute, print, or copy any part of this message if you are not the > intended recipient. Jaguar Freight Services and any of its subsidiaries > each reserve the right to monitor all e-mail communications through its > networks. > Any views expressed in this message are those of the individual sender, > except where the message states otherwise and the sender is authorized > to state them to be the views of any such entity. > ________________________________________________________________________ > This e-mail has been scanned for all known viruses. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org