I got an opportunity to explore EJB 3.1 API after a long time. In that juncture i couldn't resist my self to post some of the features of EJB 3.1 API.
Singleton capability - Singleton feature of EJB3.1 allows one session bean instance per JVM. This feature allows concurrent access and it is totally thread safe.
We can access the Singleton bean similarly how we access the stateless session bean as follows.
No-interface view - Before EJB3.1 it is necessary to have an interface for creating a bean, but EJB3.1 api allows us to create beans without an interface which eases developers life.
Asynchronous - Another nice feature of this API, which allows us to invoke session beans asynchronously
There are more features added to EJB 3.1 API.
No comments:
Post a Comment