Hi All,
I have got the following configuration.
Environment - Weblogic 5.1 SP10, JSP, Stateless Session Beans, iPlanet 4.1 and 2 server in a cluster
Herewith I am documenting the code for clarity......
/*************/
//Login.jsp
/*************/
session.setMaxInactiveInterval(1800);
session.setAttribute("SessionObjName", new SessionTimeoutNotifier("Sam");
/******************************/
//SessionTimeoutNotifier.java
/******************************/
public class SessionTimeoutNotifier implements HttpSessionBindingListener
{
private String m_strUserId = new String();
public SessionTimeoutNotifier()
{
}
public SessionTimeoutNotifier(String strUserId)
{
m_strUserId = strUserId;
}
public void valueBound(HttpSessionBindingEvent event)
{
}
/*
write the code to logout the user
*/
public void valueUnbound(HttpSessionBindingEvent event)
{
logoutUser(m_strUserId);
}
}
/***********************/
// weblogic.properties
/***********************/
weblogic.httpd.session.timeoutSecs=1800
Scenario 1)
When i login, my req goes to Server A, I do all the required action, all these time the req is processed in Server A.If the session times out, it call valueUnbound() & log out the user
Senerio 2) (I am facing this problem.........)
When i login, my req goes to Server A, I do all the required action, all these time the req is processed in Server A.
Now I bring down the Server A
It does not redirect the request to Server B.
Note: a) The session has not timed out yet
b) Also The JSP redirection work perfectly, if the
HttpSessionBindingListener is not bound to the session during Login (as stated in Login.jsp)
Pls let me know if anything other than these need to be done.
Thanx
Discussions
EJB programming & troubleshooting: Does HTTPBindingListenig work in weblogic Clustered environment?
-
Does HTTPBindingListenig work in weblogic Clustered environment? (0 messages)
- Posted by: Goprinks R
- Posted on: December 21 2001 08:16 EST