Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Whether BIRT invalidates the all the session
sandeep_sn
Hi,
Whether BIRT invalidates the session when it intercepted to filter, because im not getting session value when i write a custom chain filter. Kidly help me out.
Regards,
S.Sandeep
Find more posts tagged with
Comments
JasonW
Are you using the Viewer?
Jason
sandeep_sn
Yes, i am using BIRT Viewer, is there any thing to configure in BIRT Viewer?
Regards,
S.Sandeep
JasonW
The viewer should not be invalidating the session. Are you setting the session variables in the same context?
Jason
sandeep_sn
No, im setting the variable in different context and getting the session variable in different context. Is there any problem when we access it?
JasonW
What app server are you using? I believe by default some do not enable cross context sharing of session variables. Google: cross context session tomcat
Jason
sandeep_sn
Hi,
Im using weblogic app server, i searched for the cross context for weblogic, ifound the below code in google
<session-descriptor>
<persistent-store-type>memory</persistent-store-type>
<sharing-enabled>true</sharing-enabled>
</session-descriptor>.
after applying this also im facing the same issue, like im not getting the session value when i use the BIRT viewer.
Kindly help me out on this.
Regards,
S.Sandeep
JasonW
Create a JSP page in the top level of the viewer:
<HTML>
<BODY>
</BODY>
</HTML>
<%
session.setAttribute( "TestSession", "Hello I am Here" );
%>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>
Create a blank report with only one data item with the following expression:
reportContext.getHttpServletRequest().getSession().getAttribute("TestSession");
deploy the report to the viewer. Run the test jsp page first and then run the report.
Jason
sandeep_sn
HI,
I have added a filter before it hits the viewer servletfilter which is in web.xml, as when request coem it will comw to my own filter, there im validating few condition based on the session objects having in session. but i try it it giving null value even though the value is in session.
Note: calling applcation is deployed in the weblogic web server and BIRT application is deployed in the ejb weblogic server .
Kindly help me out.
Regards,
S.Sandeep
JasonW
I am not sure what is happening here. You could open a bugzilla for this.
Jason