From tomcat-user-return-69522-qmlist-jakarta-archive-tomcat-user=nagoya.apache.org@jakarta.apache.org Sun Jun 29 22:01:09 2003 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 63850 invoked from network); 29 Jun 2003 22:01:08 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 29 Jun 2003 22:01:08 -0000 Received: (qmail 13608 invoked by uid 97); 29 Jun 2003 22:03:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 13601 invoked from network); 29 Jun 2003 22:03:37 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 29 Jun 2003 22:03:37 -0000 Received: (qmail 62433 invoked by uid 500); 29 Jun 2003 22:00:58 -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 62420 invoked from network); 29 Jun 2003 22:00:57 -0000 Received: from main.gmane.org (80.91.224.249) by daedalus.apache.org with SMTP; 29 Jun 2003 22:00:57 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WkDt-00066Q-00 for ; Mon, 30 Jun 2003 00:00:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WkDs-00066E-00 for ; Mon, 30 Jun 2003 00:00:36 +0200 From: "Bill Barker" Subject: Re: JMX question Date: Sun, 29 Jun 2003 15:10:52 -0700 Lines: 39 Message-ID: References: <1056889038.3066.12.camel@mayer> <3EFF20A2.8040001@joedog.org> X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Less dangerous is to move the jmx jar(s) from server/lib to common/lib. It's in server/lib since older versions of JMX lacked a way to prevent a rogue Servlet from accessing all of the Tomcat internals via JMX. "Tim Funk" wrote in message news:3EFF20A2.8040001@joedog.org... > Hmmm. You might (emphasis might because I have no clue at this point in time) > need to make you webapp "privileged" so in your webapp declaration you have: > > > > -Tim > > Mayer Crystal wrote: > > I apologize if a similar question has been asked before, but I couldn't > > find anything like this in the archive. > > > > What I am trying to do is as follows: I have a filter which is attached > > to a servlet which is preloaded. When tomcat starts up, it loads the > > servlet and its filters into memory and calls the corresponding init > > methods. In the init of the filter, the code attempts to retrieve a > > reference to the MBeanServer and register an MBean. During startup, > > however, it appears that the server is null (i.e. hasn't been started). > > I know that Tomcat ships with the mx4j server/classes, so I was > > wondering if there is a way to instruct Tomcat to load the mbean server > > so that it is available even for filters/servlets that are loaded on > > startup? (I know that there is a way to use the mbeans descriptor file, > > but unfortunately this mbean is dynamic and created and referenced in > > the code directly so it can't be initialized outside of the filter's > > scope. ) > > > > If anyone has any suggestions, please let me know. > > > > TIA, > > Mayer --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org