1 Reply Latest reply: Jan 22, 2014 12:23 PM by aksarben RSS

    How to share data between java class and Servlet

    Fairlie

      Hello everyone,

      I'm trying to share an hashmap(or any other stuff to share data) between a java class and a servlet.

      The hashmap has to be filled into the servlet with some data and then I have to get those data from the java class.

      What is the best approach?

      I cannot use a DTO because I have several concurrent requests to my servlet.

       

      Thanks for your help.

       

      Fairlie