-
1. Re: HttpSessionBindingListener's valueUnbound does not behave co
gajendra083 Jul 17, 2012 11:48 PM (in response to ikevinli)Hi ,
I am facing the same issue
Can sameone help me out ?
Thanks,
Gajendra
-
2. Re: HttpSessionBindingListener's valueUnbound does not behave co
jfclere Jul 18, 2012 2:52 AM (in response to gajendra083)Are you sure it is the same issue? which version of AS are you using? Could you post the code you are using?
-
3. Re: HttpSessionBindingListener's valueUnbound does not behave co
gajendra083 Jul 18, 2012 5:50 AM (in response to jfclere)Hi Jean,
I am using jboss-as-7.1.1.Final version.
I am upgrading Jboss server, earlier we were using Jboss 4. Same code was working fine for Jboss 4.
One of my class SessionObject.java ,this class assumes a scope of session.
public class SessionObject implements Serializable, HttpSessionBindingListener {
private final static long serialVersionUID = 1L;
private final static LogService log = LogServiceFactory.createLogService();
..................
............
}
In first JSP, keeping SessionObject into session scope, setting all its property.
Using response.sendRedirect(), calling another JSP, but unable to get SessionObject properties over there. And getting different session_id also.
1) First JSP
<jsp:useBean id="sessionObject" class="com.ui.admin.menus.SessionObject" scope="session" />
<jsp:setProperty name="sessionObject" property="*" />
<%
- adminJB.setSessionObject( sessionObject );
........
......
- response.sendRedirect(url);
%>
2) Second JSP
<jsp:useBean id="sessionObject" class="com.ui.admin.menus.SessionObject" scope="session" />
<%
Long personId = sessionObject.getPersonId(); // gettting null value;
%>
-
4. Re: HttpSessionBindingListener's valueUnbound does not behave co
gajendra083 Jul 19, 2012 12:38 AM (in response to gajendra083)Hi Jean,
In my scenario also SessionObject (implements HttpSessionBindingListener) is set as session attribute.Getting the same problem valueUnbound is called unintentedly so my session data are lost. Code details already shared, if required more information regarding code, kindly let me know.
If you have some solution/details regarding this, kindly share.
Thanks,
Gajendra
-
5. Re: HttpSessionBindingListener's valueUnbound does not behave co
gajendra083 Jul 20, 2012 5:51 AM (in response to gajendra083)HI,
Need help, how can we resolve this issue ?
Thanks,
Gajendra
-
6. Re: HttpSessionBindingListener's valueUnbound does not behave co
gajendra083 Sep 6, 2012 7:07 AM (in response to gajendra083)Need help, waiting for some response
-
7. Re: HttpSessionBindingListener's valueUnbound does not behave co
jfclere Sep 7, 2012 5:56 AM (in response to gajendra083)the logic didn't change much there so it is weird that your old code stops working.
I gues you have something like:
@Override
public void valueUnbound(HttpSessionBindingEvent event) {
Which new event do you get?