EJB (Enterprise Java Beans)is standard for building server side component in Java.
It specifies an agreement between components and application server that enables any application to run on any application server.
Following are the different kind of EJBs:
Session bean.
Entity bean.
Message Driven beans.
Session beans are of two types:
Stateless session beans : These beans do not maintain state across method calls.
Stateful session beans : These beans hold client state across method invocations.
Using Session beans you can create highly scalable and secured enterprise application using object pooling techniques.
Message driven beans can be used for receiving messages from different systems.
Using Message driven beans you can create a highly scalable listener which can read messages and process accordingly.
EJB (Enterprise Java Beans)is standard for building server side component in Java. It specifies an agreement between components and application server that enables any application to run on any application server.
Following are the different kind of EJBs:
Session bean.
Entity bean.
Message Driven beans.
There are 6 Transactional Attributes are there.
Required;
RequiresNew;
Mandatory;
NotSupported;
Supports;
Never
Please Answer this
Session beans are of two types: Stateless session beans : These beans do not maintain state across method calls. Statefull session beans : These beans hold client state across method invocations.
Message driven beans can be used for receiving messages from different systems Entity beans represent data persistent data. Session beans should only implement business logic.
Local objects mrashal data by reference rather than by value. They will only work if you are calling objects in same process.
The process of saving conversational data (data needed to be saved during client conversation) to hard disk is called passivation. The process of swapping data from hard disk to bean is called activation.
Ads By Google
© 2018 - JavaSpartans.com • All Rights Reserved