aspose file tools
The moose likes Struts and the fly likes need for singleton Config ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "need for singleton Config ?" Watch "need for singleton Config ?" New topic
Author

need for singleton Config ?

Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 82
Hi,

I was going through one of struts 1.2 reference , where its mentioend that configuration information should be stored in singleton config object rather than deployment descriptors or properties.
Reason for not using deployment descriptor is that
the values in the deployment descriptor are not visible from other business objects?


I did not get this . As ServletContext is accessibe from struts action object as well as other JSPs.
Can anyone tel me if there is really a need for using a singleton config object to store the configuration information.?

SCJP 5.0 94%
OCE-EJBD 90%
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: need for singleton Config ?
 
Similar Threads
java singleton implementation choices
JAX-WS clarification
GOF Singelton class in Spring 3
Security Issue
Making changes in an XML file