You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by fr...@htp-tel.de on 2006/02/28 11:11:46 UTC

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Where is org.apache.catalina.realm.DataSourceRealm ?

Posted by Alex Jalali <al...@ubudesign.com>.
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: frank.schaare@htp-tel.de [mailto:frank.schaare@htp-tel.de] 
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org