Thursday, February 22, 2007

is there single JSP instance in server for every JSP page?

If isThreadSafe attribute is set to false
like
<%@ page isThreadSafe="false" %>
the container may create multiple instances of the JSP servlet to handle
concurrent requests or use synchronization to control access to a single instance.
but Both approaches are likely to reduce the performance of the page
because of the overheads of instantiation and locking respectively..
so this directive should be used with caution..
means if we set isThreadSafe= false, container may create multiple instances of jsp,
but for each new instance page has been instantiated means compiled and loaded which reduces performance..

Shambhuraje(Sambhaji Maharaj)

Shambhuraje(Sambhaji Maharaj)....
Son of great Shivaji Maharaj...
My tribute to great person for his sacrifice...

Though there would be many technology posts, i prefer blog title as Shambhuraje....
Dedicated to the person who is ideal in my life....

Statue of Sambhaji Raje at Tulapur, Pune