EJBEDITED
EJBEDITED
Entity Beans
Entity beans model Business Data.
Object-oriented view of entities stored in persistent storage
Normally, each instance represents a row in a relational DB table
Persistence code can be written manually (bean-managed persistence, BMP) or automatically
(container-managed persistence, CMP)
A single bean instance (on the server) can be accessed by multiple clients Unlike stateful session
beans.
Message Driven Beans
New in EJB 2.0 standard
Built on top of JMS to send messages to clients, which in turn would be received by MDB.
It is invoked by the container upon arrival of message at the destination that is serviced by the
message-driven bean.
Have no client visibility,
Foundation of EJB
Distributed Architecture
EJB components are based on Distributed Objects
A distributed object is an object that is callable from a remote system.
The client can be in-process, out-of-process or a client located elsewhere on the network.
It does the invocation with the help of the followings:
Stubs (client side proxy object):
It masks the network communication from the client.
It knows how to call over the network using the sockets, massaging parameters
as necessary into their network representation.
Skeleton (server side proxy object):
It masks the network communication from the distributed object.
It understands how to receive calls on a network.
Also knows how to massage parameters from the network representation to
their java representations.
It then delegates the call to the appropriate implementation object.
Enterprise Java Beans