1 Reply Latest reply on Oct 6, 2015 12:31 PM by magick93

    Is a Switchyard service a singleton?

    earnest.dyke

      Greetings all,

       

      If I create a SW bean service (annotated with @Service) is this service deployed as a singleton within SW? My initial testing indicates it is: I added a method annotated with @PostConstruct and the method is executed only once when the service is deployed. If this is the case then class level variables would need to be synchronized in order to protect them no?

       

      Earnie!