Hmm,

I also so think that the managedResource attribute is a hack. What we need is
a better JMX API. My wish is that we open some of the MBeans to add more operations.


Example realm:
We have only init/start/stop/destroy jmx operations but what I need  is
   authenticateXXX
   hasRole
Than I can easy used every realm for my JMX http adaptor (MX4J 2.0.1).

Peter

Bill Barker schrieb:

----- Original Message -----
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Monday, October 04, 2004 4:23 PM
Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml




Bill Barker wrote:



It was on Peter's wish-list to add "managedResource" to the Realms.  This
was taken from (I think :) StandardHost, where the code was so broken that
it was impossible that anybody was using it, so waiting for
"managedResource" to be added to the mbean-descriptor was reasonable.




I tested with removing the relevant blocks in the containers: it's not
really used.



It would be only used by some custom JMX-embedding (and, like I said, it never worked :). The JMX-embedding method that does work is to invoke "init" on the Realm, which will then add itself to whichever Container it was registered for.



Except that "managedResource" is an internal-implementation artifact of


c-m.


There really isn't any point in getting rid of it before Remy's project to
make c-m an optional component.




Really, I'm supposed to do that ? ;)



It's your todo list ;).



I don't think "managedResource" needs anything special: it's just a
standard attribute (and is a hack) that is declared in the
mbean-descriptors. Its name makes it sound like it's somehow magically
provided by the model MBean implementation, but it's not (it would be
very insecure to do so). I would be happier if we tried removing the
"managedResource", actually.




It will make Peter unhappy, but it wouldn't be hard. Probably the hardest one to do would be Connector (since you can't add a Connector to an Engine :). The Realm stuff that started this could probably just invoke init on the Realm instead.



Rémy




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




------------------------------------------------------------------------


This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
J2EE Systemarchitekt und Tomcat Experte

http://objektpark.de/
http://www.webapp.de/

Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:    (49) 175 1660884
E-Mail:  [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to