Answer Posted / john
An EJB is used to create business applications for any
e-commerce web sites.
But there are different EJBs
1) Statless Session Bean
2) Stateful Session Bean
3) Entity Bean
4) Message Bean
Depending on their functionality of each of the above
mentioned beans different requirements can be satisfied.
Therefore EJBs can be used for a wide variety of business
applications
example
Stateless Session Bean - used to check if a credit card is
valid or not when a credit card is swiped in the machine.
since there is just one trtansaction involved no need
maintain the state of the bean
Stateful Session Bean - used in online shopping websites
like ebay, amazon where the state of the client has to be
maintained. The user can do different operation during a
single logon but the items in the users shopping cart should
never be lost.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is an ejb platform?
How can a CORBA object, accessed from a EJB?
What are the key benefits of the ejb technology?
What is ejb and its types?
What are the design principles for ejb?
What is pub/sub model?
What is EJB object?
Define Clone?
What is stateless and stateful session bean in ejb?
Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?
How does the server decide which beans to passivate and activate?
What is stateless session?
What is ejbdoclet?
What is ejb client?
Enlist the enterprise beans types?