3 Replies Latest reply on Jan 4, 2013 8:25 PM by Freeman(Yue) Fang

    propagate credentials. Concurrency problems.

    Alejandro Romero Newbie



      I need an advice about my arquitecture. I have a binding component and a service engine, and, with a interceptor, I spread the consumer credentials using NormalizedMessage.


      In addition, my service engine have many proxies (cxfse:proxy), which also need the credentials, and I set them as follow:


      ((BindingProvider)proxy).getRequestContext().put("credential", "true");


      I think I have a problem if several consumers invoke my service simultaneously, because a consumer may use the credentials of another consumer.


      ¿What can I do? Do I have a problem really, or the client proxies are thread safe?


      If no, I thought about creating a pool of proxies, is it a good idea?




      Edited by: arcaballero on Jan 2, 2013 8:37 PM