0 Replies Latest reply on Aug 20, 2007 2:50 PM by Toni Beckman

    State of @Transient instance variables

    Toni Beckman Novice

      I'm using a counter in an Entity Bean. It tracks the number of times a certain condition occurs. I have marked the counter with @Transient, because I only need it temporarily.

      My questions is:

      If several threads look up the same Entity Bean (with the same primary key), does each entity bean get it's own counter or do they all share one instance variable of the counter?

      Basically I need to know, whether or not the counter can be used reliably to compute some result for the duration of the current thread.