Skip to main content

ConnectionFactory looks like a singleton and I think could probably be rewritten toand would be as safer as a singleton. Unsynchronized concurrent calls to initializeConnectionPool() would createhave unintended side effects-effects. Take a look at http://en.wikipedia.org/wiki/Singleton_pattern to see which Java singleton pattern works best for you.

ConnectionFactory looks like a singleton and I think could probably be rewritten to be as safer singleton. Unsynchronized concurrent calls to initializeConnectionPool() would create unintended side effects. Take a look at http://en.wikipedia.org/wiki/Singleton_pattern to see which Java singleton pattern works best for you.

ConnectionFactory looks like a singleton and I think could probably be rewritten and would be safer as a singleton. Unsynchronized concurrent calls to initializeConnectionPool() would have unintended side-effects. Take a look at http://en.wikipedia.org/wiki/Singleton_pattern to see which Java singleton pattern works best for you.

Source Link

ConnectionFactory looks like a singleton and I think could probably be rewritten to be as safer singleton. Unsynchronized concurrent calls to initializeConnectionPool() would create unintended side effects. Take a look at http://en.wikipedia.org/wiki/Singleton_pattern to see which Java singleton pattern works best for you.