Re: extend JDBCRealm?

2004-12-27 Thread Tim Funk
Yes. Place the file in $CATALINA_HOME/classes/yourpackage/YourClass.class (or 
somewhere in the server classloader)

-Tim
Ilja Smoli wrote:
Hi
Question is: is it possible to extend org.apache.catalina.realm.JDBCRealm
and override method  authenticate(String username, String credentials)?
And if it is possible (i guess it is),  where to put it and etc...

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


RE: extend JDBCRealm?

2004-12-27 Thread pandu yelamanchili
Yes it is. You will have to change the name in server.xml file also to your 
class name. Also the class/jar file should be placed in the common folder 
since tomcat needs access to it.

Pandu
From: Ilja Smoli [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: extend JDBCRealm?
Date: Mon, 27 Dec 2004 13:49:23 +0200
Hi
Question is: is it possible to extend org.apache.catalina.realm.JDBCRealm
and override method  authenticate(String username, String credentials)?
And if it is possible (i guess it is),  where to put it and etc...

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


Re: extend JDBCRealm?

2004-12-27 Thread Bob Feretich
I extended it and placed the class com.xxx.realm.classname  in the
server/classes folder for Tomcat 4.1.24.  It's working, but I don't use
any of the class methods in my application. And you need to name the
class in server.xml as Pandu states.
Host ...
Context...
  Realm  className=com.xxx.realm.classname ...
Regards,
Bob Feretich
 Yes it is. You will have to change the name in server.xml file also to
 your class name. Also the class/jar file should be placed in the common
 folder since tomcat needs access to it.

 Pandu

 From: Ilja Smoli [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: tomcat-user@jakarta.apache.org
 Subject: extend JDBCRealm?
 Date: Mon, 27 Dec 2004 13:49:23 +0200

 Hi
 Question is: is it possible to extend 
org.apache.catalina.realm.JDBCRealm
 and override method  authenticate(String username, String 
credentials)?
 And if it is possible (i guess it is),  where to put it and etc...




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