It is contained within /tomcat/server/lib/catalina-optional.jar

After you create the class placed it under /tomcat/server/classes For some
reason when I place it in WEB-INF/classes, tomcat couldn't find it. Maybe my
class path error.... anyway

For configuration this is an example for mysql. I extended the JDBCRealm for
this...   

<context ...
<Realm  className="com.xxx.MyJDBCRealm" debug="1"
             driverName="org.gjt.mm.mysql.Driver"
          connectionURL="jdbc:mysql://localhost:3306/xxx"
         connectionName="dbuser" connectionPassword="dbpassword"
              userTable="client" userNameCol="USERNAME"
userCredCol="PASSWORD"
          userRoleTable="client_roles"  roleNameCol="ROLE_CODE"
appName="MyRealm"/>


 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 28, 2006 2:12 AM
To: users@tomcat.apache.org
Subject: Where is org.apache.catalina.realm.DataSourceRealm ?

Hi,

We need a little extension to our configured DataSourceRealm. One of our
ideas ist to implement a custom realm which is mostly the same as
org.apache.catalina.realm.DataSourceRealm, but extended with a few lines of
our own code. Unfortunately, we cant find the
org.apache.catalina.realm.DataSourceRealm.class, but it is in the
src-package.

Is it possible to extend org.apache.catalina.realm.DataSourceRealm ?

If not, how exactly is it instantiatet ? It seems to be registered on the
fly to the MBean Server, can anyone tell me a little bit more about that
process or point me to some documentation where this task is described ?

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


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

Reply via email to