Week 3 - Stateless Session Beans (SLSB) Flashcards

1
Q

What is a stateless session bean?

A

A collection of related methods/services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SLSB require passivation and activation (T or F)

A

F - no state to save

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An SLSB can have instance variables (T or F)

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the path and filename of EJB XML deployment descriptors?

A

META-INF/ejb-jar.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the method-ready pool work with SLSBs?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is SessionContext?

A

An interface that allows an EJB to interact with an EJB container.

jakarta.ejb.SessionContext
@Resource SessionContext ctx;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is EJBContext?

A

A base interface for interacting with a container context

jakarta.ejb.EJBContext

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Enterprise Naming Context (ENC)?

A

The Enterprise Naming Context is a space in JNDI where EJBs are registered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly