my dog learned polymorphism*
The moose likes Struts and the fly likes need for singleton Config ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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: 84
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://aspose.com/file-tools
 
subject: need for singleton Config ?
 
Similar Threads
Security Issue
GOF Singelton class in Spring 3
java singleton implementation choices
JAX-WS clarification
Making changes in an XML file