You can use Singleton pattern, but care must be taken.
For example
if ( singleton == null )
{
singleton = new SingletonObj();
}
There might be a case where few thread running concurrently on the null
checking, then multiple singleton object will be created more than one.
Hi there,
I have problem when starting up Tomcat.
Here is the transcript of the starting tomcat process :
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp
Using JAVA_HOME: C:\Program
Hi there,
I have problem when starting up Tomcat.
Here is the transcript of the starting tomcat process :
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.28
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.28\temp
Using JAVA_HOME: C:\Program