Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem : Implementing custom logout functionality in WPS 5.1

15 views
Skip to first unread message

suma...@wipro.com

unread,
May 16, 2007, 3:09:14 AM5/16/07
to
Hi,

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.

karavan

unread,
May 16, 2007, 11:01:22 AM5/16/07
to
Try extending your class from LogoutUserAuth

i.e

public class LogoutUserAuth extends com.ibm.wps.engine.commands.LogoutUserAuth {
..
..
}

neelima.g...@wipro.com

unread,
Jul 9, 2008, 6:52:31 AM7/9/08
to
Hi,

The custom logout functionality is deprecated in WPS6.0.1, can anyone please help in identifying the replacement.

Thanks

Jim Barnes

unread,
Jul 9, 2008, 9:48:58 AM7/9/08
to
there is no replacement in 6.0.1, it is replaced in 6.1


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

0 new messages