why ejbActivate and ejbpassivate methods are not in the stateless bean

please give me clearly
[29 byte] By [sudha_1234a] at [2007-10-2 20:12:53]
# 1

You can translate "activate" and "passivate" as follows:

activate means "please fetch the last state for this stateful session bean from the persistent store"

passivate means "the container is going to unload this stateful session bean from memory, so please persist its state in the persistent store"

Neither of those statements apply to stateless session beans, because they're stateless. There's nothing to persist. One SLSB is as good as another for servicing a request. They don't care who their last client was.

%

duffymoa at 2007-7-13 22:54:56 > top of Java-index,Java Essentials,New To Java...