Hi,
I have few quetions regarding the Turbine.java class.
1.
In the init(ServletConfig config) method of turbine what is the need of synchronized
block?
My quetion is if this is the startupServlet then this method will be called only once
by the ServletEngine.Then what is the reason behind using this synchronized?
2.
In the above method synchronized has been put for threadsafe then again what is the
need of the below code? Is n't it over cautious?
if(!firstInit)
{
log ("Double initializaton of Turbine was attempted!");
return;
}
Thanx
Shiva
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>