Week 1 - EJB Intro Flashcards
1
Q
What are EJBs?
A
Server side components/java objects that implement business logic.
Clients interact with EJBs through container interface.
2
Q
What is resource pooling?
A
Expensive JDBC connection is shared between EJB instances.
3
Q
What does the EJB container do?
A
- Provides interface for clients
- manages pools, resources, transactions, concurrency, security
- Manages lifecycle of EJB and dependency injection
4
Q
When do POJOs become EJBs?
A
When you add the annotation.
ex:
import jakarta.ejb.Stateless;
@Stateless
…
5
Q
What are the 3 kinds of EJBs?
A
Session beans
Message-Driven beans
Entity beans
6
Q
A