Java Reference
In-Depth Information
As you can see, there's little difference between developing a stateless and a stateful bean.
From a developer's perspective, the only difference is that the
DefaultOrderPro-
cessor
class is marked with the
@Stateful
annotation instead of the
@Stateless
annotation . As you know, though, under the hood this makes a huge difference in how
the container handles the bean's relationship to a client and the values stored in the bean
instance variables
. The
@Stateful
annotation also serves to tell the client-side de-