Thanks Bob! I will take a good look at that!

=================================== 
 Augusto Cesar Guagliano
 [EMAIL PROTECTED]
 Project Manager
 +55 19 9106.9024
 Infosoftware Consulting
 http://www.infosoftware.com.br
===================================
 
Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 
you must not use, copy, disclose or take any action based on this message 
or any information herein. If you have received this message in error, 
please advise the sender immediately by reply e-mail and delete this 
message. Thank you for your cooperation.





"Butash, Bob" <[EMAIL PROTECTED]>
27/06/2003 11:55
Please respond to "Struts Users Mailing List"

 
        To:     "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
        cc: 
        Subject:        RE: Best way of implementing application-specific config 
objects


You could use the Plugin capabilities of Struts.  Make your factory a 
Struts
Plugin, that way it will get initialized as part of the servlets
initialization.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:49 AM
To: Struts Users Mailing List
Subject: Best way of implementing application-specific config objects


Hi to everyone!

In my project, I  have a XML with some config data, like username, 
password (all connections made from my system to a target systenm must use 

this same info).

I'm a little lost about the best way of implementing this. I thought about 

doing: a  "Config" Factory, that should keep a singleton Config object 
(that should be populated with data from the XML). But I would need a way 
for calling some initialization action for this Factory (like creating the 

Hashtables and so on). How could I do that in a smart way so I don't have 
to check at every call if the Factory has already been initialized?

Sorry if this is a stupid question, but I am far from being a master =)

TIA!

=================================== 
 Augusto Cesar Guagliano
 [EMAIL PROTECTED]
 Project Manager
 +55 19 9106.9024
 Infosoftware Consulting
 http://www.infosoftware.com.br
===================================
 
Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
mensagem por engano, por favor avise imediatamente o remetente, 
respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.

This message may contain confidential and/or privileged information. If 
you are not the addressee or authorized to receive this for the addressee, 

you must not use, copy, disclose or take any action based on this message 
or any information herein. If you have received this message in error, 
please advise the sender immediately by reply e-mail and delete this 
message. Thank you for your cooperation.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to