Working on a JAX-RS application. I have an endpoint (@GET). Once the request arrives at endpoint, the call stack flows through multiple service classes. As shown in below image. I want something in place of that RED Bucket.
Is there any I can create a shared session map which lives only per request?
I considered using STATIC or @Singleton but these values are shared between multiple requests. I don't want that.
Please point me to right question