WSIFServiceFactory.newInstance() not a singleton? - Apache

This is a discussion on WSIFServiceFactory.newInstance() not a singleton? - Apache ; 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...

+ Reply to Thread
Results 1 to 2 of 2

WSIFServiceFactory.newInstance() not a singleton?

  1. Default 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



  2. Default Re: WSIFServiceFactory.newInstance() not a singleton?

    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



+ Reply to Thread