RE: Question regarding using custom authentication with WCK

"Reza Rahman" <[email protected]> Mon, 18 Jun 2007 15:13:47 -0400
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <001101c7b1dc$ccbd0690$2101a8c0@rezalaptop>
For a very similar scenario, I retrieved a javax.sql.DataSource from the
Tomcat JNDI context in a static initializer and retrieved a connection in
the constructor. Here is how to create a data source in Tomcat:

http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html

Hope this helps.

Cheers,
Reza

-----Original Message-----
From: Ali Naddaf [mailto:[email protected]] 
Sent: Monday, June 18, 2007 2:52 PM
To: Slide Users Mailing List
Subject: Question regarding using custom authentication with WCK

Hello all.

I am planing to use Slide for my project and as part of the 
requirements, I need to have a custom authentication. I noticed the 
existence of such hook in WCK and modified the FakeSessionManager.java 
to see how it works and it indeed worked as advertised. So far, I have 
hard-coded username/passwords in FakeSessionManager.java for testing 
purposes. Now I want to make a database call to validate a 
username/password and I was wondering if someone could give me a hint as 
how to initialize a  db connection there in FakeSessionManager.java (or 
any other implementation of SessionAuthenticationManager interface for 
that matter).

Many thanks in advance,
Ali.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.0/852 - Release Date: 6/17/2007
8:23 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.0/852 - Release Date: 6/17/2007
8:23 AM