actualy I did my custom authentication retrieving authentication information from a database, with the following code based on sample1b:
private static final HashMap users = new HashMap();
static
{
try{
Database db = new Database();
CachedRowSet crs = new CachedRowSet();
db.setUsr("web");
db.setPwd("web");
crs = db.select("select CDUSER, PASSWD from USER");
while (crs.next()){
users.put(crs.getString("CDUSER"), crs.getString("PASSWD"));
}
}
catch (SQLException e){
System.out.println(e);
}
catch (Exception ex){
System.out.println(ex);
}
}
I know this piece of code is static and it's run once at the UserBean
call, I already transfer this code to setEntityContext but it doesn't made
any effect. Tracing the default-event.log I realized that the UserBean
was charged once by Ejb application.
So, after all these conclusions, I don't know how to charge the user
information from database when JRun is running. I've been reading
the JRun API, most the UserManager API, but I didn't taken any conclusions.
If you have a tip, I'll be very thankful.
Marcelo
Scott Stirling wrote:
What do you mean? If you change the user info in users.properties while the
server is running? I'd say no. If you implement your own authentication
service by extending JRun's then you'd have a wider range of possibilities, such
as retrieving authentication information from a database.Scott Stirling
-----Original Message-----
From: Marcelo Bellezo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 6:52 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Reloading User Information for AuthenticationHi all,
is there any way to reloading the user information ( User name and
Password ) to JRun without restarting the server ?thank's
Marcelo
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
