You could create a SessionListener and create your bean and bind it to the session in the sessionCreated method.
-----Original Message----- From: Chad Cunningham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 04, 2004 4:42 PM To: [EMAIL PROTECTED] Subject: realms and user initialization Hi, Is there a simple way to initialize a bean and store it in the session context when a user is logged in via realms? I'd like to have a bean which is filled with data from a database at login and then sticks in the session so it is available everywhere. Is there a login hook or anything I can use, or do I need to manually check on each page to see if the object has been created yet? Thanks --------------------------------------------------------------------- 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]