You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by Andrzej Jan Taramina <an...@chaeron.com> on 2005/11/24 08:37:38 UTC

WSIFServiceFactory.newInstance() not a singleton?

Is there a reason that WSIFServiceFactory.newInstance(); always returns a new 
instance, rather than a singleton of the factory?

Is the WSIFServiceFactoryImpl not threadsafe perhaps?

Thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


Re: WSIFServiceFactory.newInstance() not a singleton?

Posted by Aleksander Slominski <as...@cs.indiana.edu>.
Andrzej Jan Taramina wrote:

>Is there a reason that WSIFServiceFactory.newInstance(); always returns a new 
>instance, rather than a singleton of the factory?
>
>Is the WSIFServiceFactoryImpl not threadsafe perhaps?
>  
>
there was long discussion about it. what you say makes sense and that 
would be ideal to make service factory a singleton (and speed up things) 
however there were some concerns raised AFAIR regarding J2EE/JNDI (but 
my memory is short).

the biggest problem with current codebase are unit tests - it is several 
months i was not able to run them (i lost previous setup, they are not 
very well documented, and they have some stuff that is very hard to run 
or maybe impossible ... )

alek

-- 
The best way to predict the future is to invent it - Alan Kay