Interview :: EJB
11) What is Pub/Sub model?
12) What is MDB?
13) What is Entity Bean?
14) What is Session Facade?
Session Facade is a design pattern to access enterprise bean through the local interface. It abstracts the business object interactions and provides a service layer. It makes the performance fast over the network.
15)
List some key actors in persistence API?
Some of the key actors in persistence API are:
- Entity
- EntityManager
- Persistence unit
- Data source
16)
List down the steps for the demonstration of EJP persistence mechanism?
- Create a database table
- Create entity classes for the table
- Create persistent unit and data source
- Create a stateless EJB
- Update stateless EJBM
- Console based application accesses the stateless EJB.
17)
Name the attributes of javax.ejb.Stateful?
- Name
- mappedName
- Description
18)
Name the attributes of javax.ejb.EJB?
beanInterface
beanName
mappedName
19)
Mention the three levels for applying interceptor methods?
- Default
- Class
- Method
20)
Mention the Java types that can be mapped using the @Lob annotation?
- java.sql.Blob
- String
- byte[]
- java.sql.Clob
- Serializable Object