I would like to know when exactly the CachedRowSet is going to be eligible for GC. With a little homework I learned that when the user session ends then it would be qualified for GC. Moreover, how is the user session tracked in such cases. What is the "session" here in this context?
Scn 1: When I directly access CachedRowSet from servlet Scn 2: When I have a stateless session bean and then a JDBC call
in Scn1- I can somehow get the session reference and hence i could maintain. How about the Scn 2? I would only have user thread Id in this case. So how does it work? Is it going to consider the thread id for tracking the existence of the CachedRowSet?
Do we have any good reference articles and links. Correct me if I am wrong somewhere.
Thank you in advance
Have Fun with Java
little,little.. little by little makes a lot..
Thank you Gibbons,
It opens lot of gaps to learn that " it would act like instance variable as far GC is concerned". So when I come out of the behavior/operation then, is this data lost? For example, I have a method in DAO which uses CRS when the flow comes out of this class, Is the CRS used eligible for GC? If the answer is yes then it is good else it should be somehow referenced.