If you want one per thread just use ThreadLocal.

Stuart

On Thu, 5 Apr. 2018, 7:42 pm Steve Hu, <stevehu@gmail.com> wrote:
I need to share the same instance of a "Util" object to reuse it in all the handleRequest calls. Where is the best place to store the Util object instance? TheĀ Util class is not thread safe, so I should have one instance for each client thread.

Thanks,

Steve

_______________________________________________
undertow-dev mailing list
undertow-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev