On 21/7/09 23:23, Mitch Claborn wrote:
I am toying with the idea of writing my own Realm for authentication.
Much of the code and structures that I need are already present in the
web application. Is there any way for the Realm to access Java objects
from the web application? They don't appear to share the same class loader.
As an alternative is there a mechanism for providing the functionality
of a Realm, but within the web application structure?
You can define the Realm in your context.xml, (which of course you'll be
configuring in the META-INF dir of your web-app, hint hint).
I think this will load classes from your web-app classloader.
N.B. Check out the "localDataSource" attribute, if you're also using a
web-app specific DataSource.
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#DataSourceRealm
p
Mitch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org