5 Replies Latest reply on Sep 27, 2011 2:15 PM by Rogelio Sevilla

    Multiple instances for a service

    Rogelio Sevilla Novice

      Hello everyone,

       

      I'm playing around with some Fuse ESB features that I haven't used. I created a simple hello world service (similar to the one on the documentation) and 2 clients that use the same service.

       

      My Service Bundle is exposing a service with this code:

       

       

       

       

       

      Everything is working fine, however, I realized that my service is instantiated only once, so, if I had multiple clients making requests (and obviously a more complex service) I would have a multi threading problem here.  So my questions is, how can I expose a service in a way that every client gets a new instance instead of using always the same one??

       

       

      Thanks in advance

       

      Edited by: rogelio_sevilla1 on Sep 24, 2011 3:55 AM