A simple question

From: ShadowMan (shadman_at_despammed.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 12:37:11 +0200

Hi all
I need a ConnectionBroker class that
- is 'initialized' at application startup
- it may dispatch many types of connection according to a passed parameter
- should be visible from both EJBs and other classes
At moment I have a class with static methods and fields; this class is
initialized at startup-time.
Is it better to switch to a Singleton Pattern instead of static methods?!

Generally, wich kind of pattern should I use when I need 'initialized' or
'prepared' objects?!
Is it better to pass every time the configuration?!

thanks

-- 
ShadowMan