0
I have a web application that contains some JSP pages that return a JSON.
This application has a large access flow, and I noticed that there are many open sessions in the Glassfish server monitoring area.
See a piece of code that is on JSP:
<%
RequestLive ao vivo = new RequestLive ();
out.print (live.search ());
%>
That’s all I have in JSP, the rest of the Java class does the service, and JSON is printed on the page.
The real question is, a session is opened if I access the URL to retrieve the data?
Ex: www.mydomain.com/Requestlive.jsp
I should call the session.invalidade ();
or is correct as I am using?
The question has been translated!
– jucajl
What
live.seach()
does? After printing what does one do? Will it read and copy or is it just to consume in other applications? If this is a restService, it would be interesting to do in a Servlet.– Shura16
Do a search and return in a JSON, the page works as a REST yes...
– jucajl