Karl,

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


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

Reply via email to