I am getting some problem while implementing custom logout functionality in WPS 5.0!
I have followed these steps:
1) ConfigService.properties : command.logout = LogoutUserAuth
2) LoaderService.properties : command.path = com.a.b.c.auth1;com.ibm.wps.engine.commands;com.ibm.wps.tpl.commands
3) In the auth1 pakage I have created a class LogoutUserAuth:
public class LogoutUserAuth extends com.ibm.wps.engine.commands.LogoutUser
{
/**
** Can be overridden by derived classes to extend (or disable) the logout mechanism.
**
** @param RunData
** the rundata object
* @throws WpsException
**/
protected void doPreLogout (RunData aRunData) throws WpsException
{
super.doPreLogout(aRunData);
System.out.println("doPreLogout called");
}
/**
** Can be overridden by derived classes to extend (or disable) the logout mechanism.
**
** @param RunData
** the rundata object
* @throws WpsException
**/
protected void doPostLogout (RunData aRunData) throws WpsException
{
super.doPostLogout(aRunData);
System.out.println("doPostLogout called...");
}
/**
** This method is called when a user's session times out and the user has not
** previously logged out.
** Can be overridden by derived classes to extend (or disable) the logout mechanism.
**
** @param Session
** the user's session
**/
public void onUserSessionTimeout (HttpSession aSession)
{
System.out.println("Session timed out....");
}
}
In the console I am not able to see any System.out.println statements.
I am not sure whether this class is called or not.
Can somebody guide me if I am missing something?
Thanks,
Suman.
i.e
public class LogoutUserAuth extends com.ibm.wps.engine.commands.LogoutUserAuth {
..
..
}
The custom logout functionality is deprecated in WPS6.0.1, can anyone please help in identifying the replacement.
Thanks
IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0
IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM