You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Shiva Kumar T <sh...@infosys.com> on 2003/01/22 12:20:15 UTC

Regarding the Turbine Class

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>