I use HttpSession in my server application. And for the session set attributes. My question in next: how attribute for session sets - by reference or value.
Question in afraid reason that would not java heap space exception and RAM saving.
For example: if I'll create stateless array1
and will set this as attribute for the different sessions. In this case all sessions will work with array1
as "singleton" instance or maybe not
Thanks!