File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Making changes in an XML file
Security Issue
GOF Singelton class in Spring 3
JAX-WS clarification
java singleton implementation choices