[jboss-dev-forums] [JBoss Web Development] - Force JBoss to refresh cache
rlutz
do-not-reply at jboss.com
Tue Sep 13 15:04:27 EDT 2011
rlutz [http://community.jboss.org/people/rlutz] created the discussion
"Force JBoss to refresh cache"
To view the discussion, visit: http://community.jboss.org/message/626325#626325
--------------------------------------------------------------
Hey all, we're running JBoss 2.4.2, and I just finished up working on a simple little password reset system for our portal. Use case is basically
user gives email -> user receives email with session key and clicks it -> user inputs new password. I'm just updating the jbp_users table via JDBC (md5sum'ing their new password and inserting it in the table), and I can verify that the new hash is correct, but JBoss Portal seems to be caching the old login info.
My question is, can I force JBoss to forget its cached logins and recheck the database for changes, or is there a better way to do this? This isn't running inside a portlet, so I can't juse use getPortletContext().getAttribute("UserModule") to find a user by username and update their password that way.
Anyway, I'm sure I'm doing it wrong, but any help would be greatly appreciated. Thanks so much!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/626325#626325]
Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110913/fcc21cfc/attachment.html
More information about the jboss-dev-forums
mailing list