Week 3 - Stateless Session Beans (SLSB) Flashcards
What is a stateless session bean?
A collection of related methods/services.
SLSB require passivation and activation (T or F)
F - no state to save
An SLSB can have instance variables (T or F)
T
What is the path and filename of EJB XML deployment descriptors?
META-INF/ejb-jar.xml
How does the method-ready pool work with SLSBs?
A client can only use one instance at a time.
When a client calls an SLSB method, any instance in the pool can process it.
What is SessionContext?
An interface that allows an EJB to interact with an EJB container.
jakarta.ejb.SessionContext
@Resource SessionContext ctx;
What is EJBContext?
A base interface for interacting with a container context
jakarta.ejb.EJBContext
What is the Enterprise Naming Context (ENC)?
The Enterprise Naming Context is a space in JNDI where EJBs are registered.