tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: RealmBase's 'Container' requirement
Date Sun, 03 Aug 2008 00:29:24 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill,

Bill Barker wrote:
| Unless you pre-registester the Realm with JMX, the dummy needs to extend
| ContainerBase.  But otherwise, it just needs to implement getLogger() and
| getContainerSuffix() (not needed if you JMX register yourself) to have a
| dummy container.

I'll want this code to work across containers -- including non-TC
containers, so the JMX route is probably not a good one for me. Sounds
like trivially extending ContainerBase is the way to go.

| Depending on the Tomcat version and/or configuration, the
| Container class may not be visible to your ClassLoader.  So there is no
| guarantee that you could call setContainer for a Realm that was
created by
| your webapp.  You will also likely have problems if you are running
Tomcat
| with a SecurityManager.

I think the idea would be that you could place the appropriate TC JAR
file in your own webapp's lib directory, and therefore not rely on the
availability of TC's classes through a parent (or even disjoint)
ClassLoader.

Thanks for the info,
- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiU++QACgkQ9CaO5/Lv0PCT6QCfSKu7VArsMNBLLFX+eOPU3P9Q
4PcAn0kQ3z0BHa0UgrqU1uPByBeG+A5B
=Kegk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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


Mime
View raw message