[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times

terryb do-not-reply at jboss.com
Tue Jan 22 09:54:38 EST 2008


I tried org.jboss.seam.loggedOut and org.jboss.seam.security.loggedOut and also @Observer(Identity.EVENT_LOGGED_OUT) but no success. 

Pete, I used debugger and found that Identity.logout() does attempt to raise event but there is no event to be raise. Event.raiseEvent() method shows List variable 'observers' being null.

Seems for some reason my @Observer(Identity.EVENT_LOGGED_OUT) is being ignored?


  | Seam Events.java
  |    public void raiseEvent(String type, Object... parameters)
  |    {
  | ...
  | List<Init.ObserverMethod> observers = Init.instance().getObserverMethods(type);
  |       List<Init.ObserverMethod> observers = Init.instance().getObserverMethods(type);
  |       if (observers!=null)
  |       {
  | ...
  | 
  |       }
  | }
  | 
  | 
  | My Authenticator.java
  | @Observer(Identity.EVENT_LOGGED_OUT)
  | public void logout() {
  | 	activityLog.logOrgUser(orgUserAuthenticated.getUser(), ActivityLogger.Code.LOGOUT, null);
  | }
  | 
  | 
  | note that in my case RuleBasedIdentity.logout() is invoked first then Identity.logout().

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122234#4122234

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122234



More information about the jboss-user mailing list