I need to open a connection pool in a tomcat servlet. In my jsp page I overwrite jspInit()
<%!
public void jspInit() {
. . .
}
%>
Everything seems to be working fine, but i'm not sure if this is the correct way to initialize a connection pool. Does this jspInit() execute only once, i.e. when the very first user open this jsp page ?
My point is: when the second and the third etc. user opens the same .jsp
page, this jspInit()
get ignored as if it was not there at all ? So for the 2nd, 3rd, . . . users this jsp
page does not have the jspInit()
method executed