1.

What Is The Difference Between Session Bean And Entity Bean?one?

Answer»

The SESSION bean and ENTITY bean are two MAIN parts of EJB container.
Session Bean
--represents a workflow on behalf of a client.
--one-to-one logical mapping to a client.
--CREATED and destroyed by a client.
--not permanent objects.
--lives its EJB container(generally) does NOOT survive system shut down.
--two types: stateless and stateful beans Entity Bean.
--represents persistent data and behavior off this data.
--can be shared among multiple clients.
--persists across multiple invocations.
--findable permanent objects.
--outlives its EJB container, survives systeem shutdown.
--two types: container managed persistence(CCMP) and bean managed persistence(BMP).

The Session bean and Entity bean are two main parts of EJB container.
Session Bean
--represents a workflow on behalf of a client.
--one-to-one logical mapping to a client.
--created and destroyed by a client.
--not permanent objects.
--lives its EJB container(generally) does noot survive system shut down.
--two types: stateless and stateful beans Entity Bean.
--represents persistent data and behavior off this data.
--can be shared among multiple clients.
--persists across multiple invocations.
--findable permanent objects.
--outlives its EJB container, survives systeem shutdown.
--two types: container managed persistence(CCMP) and bean managed persistence(BMP).



Discussion

No Comment Found