we using SSO mode integrate jforum with our JAAS, everytime a new user registered and
entering Jforum, their user name is not showing in the bottom, (we sure he/she is last registered user)
unless we restart the jforum application, the correct name will get showing
sometimes, the forum just showing null pointer exception, you can not do anything with the forum. and the WhoIsOnline table gets messed up
, however after a restart, everything back to normal.
I had look of the code, you are getting it from the cache, help please. [originally posted on jforum.net by confucius]
SSO and "registration" is a gray area. For example, if you have a site that's been up for a while with users, then you add jForum. Is it a new registration if a user who's been accessing the main site for years accesses jForum for the first time? Some people might not like that they are now identified as a "newbie"...
Anyway, it sounds like for your situation, you want new SSO users to be noted. So, when in the code to create a new jForum user, you need to make sure you do the following:
absolutely spot on, monroe ! thanks again. Yeh our website has been running for a while
but the forum is a new function, I guess people are happy to be called "newbie or noob" whatever,
because it is new concepts to lots of them, (we run National pensioners website lol)
anyway it works but I still got a few questions
1> before adding your code, the last registered user can only be showing correctly after restart the tomcat.
why is that? I mean if it doesn't work, it should never work isnt, why restart the tomcat would
make it working?
2>UserAction.registrationComplete() is the only place calls
search the whole project, the method name doesnt get called in any place. because reflection is used
so I can't see the actual method signature or something?
Is it a new registration if a user who's been accessing the main site for years accesses jForum for the first time? Some people might not like that they are now identified as a "newbie"...
if confucius said is true, the new users will be shown as newbies after the server restarts anyway.
I guess this is another logical error with SSO?
I simply removed the "last registered user" and "total registered user" section on my site, just like how they removed
"login", "logout", "register" links. you know, just add code like "<#if SSO> ....." in your templates file . [originally posted on jforum.net by shanyangqu]
In jForum, any class with "Repository" in its name deals with information cached in memory. So, just adding them to the DB didn't change the information cached in memory. Restarting Tomcat caused the memory cache to be rebuilt from the DB info which made it correct.
These statements are called in the UserAction.registrationComplete() action. Don't know why you couldn't find it.. [originally posted on jforum.net by monroe]
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...