Stateless session beans are clearly allowed to have instance variables
(fields). A client of a stateless session bean cannot assume that he has the
same bean instance for each method call.

Assume we have a stateless session bean, which holds some fields storing
various home interfaces. Gary (my co-worker) and I disagree in interpreting
the EJB spec on what happens to those fields between method calls,
specifically with respect to lazy initialization. My assumption is that
those fields will be set to null between method calls, Gary assumes that the
field may hold valid information (in which case lazy initialization dosn't
occur). Comments?

(we discussed doing a test, but that would only prove what Orion does ...)

john d


Reply via email to