Re: using static properties vs. servletcontext for storing applic atio n scope objects

2003-09-16 Thread Lakshmeenarayana
as we know static accessors are used to check the number of instance to one and also global copy for all objects of the class. But when the program enters environment where you have different class loaders. .like web application servers its bit tricky and I have faced problems in JRun 4. So its al

Reg: Singleton Object.

2003-09-16 Thread Velmurugan (Java)
Dear All, How do I create singleton object in Java? Can you give some examples on that. Regards, Velmurugan P === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTE

Re: using static properties vs. servletcontext for storing applic atio n scope objects

2003-09-16 Thread Partha Ranjan Das
Could any of you shed light on this? If somebody could give the fundamental differences of the two approaches, it is even better. Regards, Partha -Original Message- From: Partha Ranjan Das [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:46 PM To: [EMAIL PROTECTED] Subject: u

Re: using static properties vs. servletcontext for storing applicatio n scope objects

2003-09-16 Thread Pradeep Kumar
I prefer either option 1 or better have a singleton object. -Original Message- From: Partha Ranjan Das [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:46 PM To: [EMAIL PROTECTED] Subject:using static properties vs. servletcontext for storing applicatio n sco

using static properties vs. servletcontext for storing applicatio n scope objects

2003-09-16 Thread Partha Ranjan Das
Hi all, I have to store a Java object into an application scope. I am to decide between two possible implementations viz.: 1. use a class with some static properties and some static accessor methods which can be accessed by any JSP/servlet thread. The shared (application ) object will be there in