Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

UnManaged RAS increasing Session count

$
0
0


Background:
We have crystal server 2013 setup with 5CAL and I have developed a
customweb application that uses RAS in unmanaged way.
The custom web application is deployed in tomcat 7 of Crystal server
2013.

Problem:
Everytime I view the report using CrystalReportsSDK.jar and
CrystalReportViewer, the session count increases by 1. So If I view 5
reports in quick succession, it reaches the CAL limit and throws
exception on 6th report request due to CAL limit reached.

 
My code snippet:

Code in servlet:
boReportClientDocument.setReportAppServer("RASIP:1566");
boReportClientDocument.open(reportLayout+".rpt",0);
request.getSession(true).setAttribute("reportSource",
boReportClientDocument);
response.sendRedirect("jsp/report-viewer.jsp");

Code in viewer.jsp:
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setName("Crystal_Report_Viewer");
viewer.setOwnPage(false);
viewer.setOwnForm(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);

//Get the report source object that this viewer will be displaying.
Object reportSource =
request.getSession(true).getAttribute("reportSource");
ReportClientDocument reportClientDocument =
(ReportClientDocument)reportSource;
if (reportClientDocument != null) {
viewer.setReportSource(reportClientDocument.getReportSource());

//Render the report.
try {
viewer.processHttpRequest(request, response,
getServletConfig().getServletContext(), null);
request.getSession(true).removeAttribute("reportSource");
} catch (Throwable thr) {
thr.printStackTrace();
} finally {
System.out.println("Closing document session");
reportClientDocument.close();
}



RASIP - IP of Crystal server 2013.
I have added the following command line arguments to RAS -ipport 1566
-reportdirectory C:\Crystal\Reports -JTCss 2048

I am using RAS in Unmanaged way still the session count is increasing.

I am not using Enterprise session so not sure why the session count is
still incrementing.
I had spoken to SAP tech support(they think session count should not increase in unmanaged RAS) and raised an issue about this.

Please let me know how to prevent session count increment in Unmanaged RAS if there is one.

Best Regards,
Bharat


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>