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 passivation and activation in ejb?
What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?
What are the differences between ejb 3.0 and ejb 2.0?
What is ejb technology?
Define ripple effect?
What are the types of enterprise bean?
What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?
TX operation funtion executed by?
What is the difference between session and entity beans? When should I use one or the other?
What is rmi and ejb in java?
What ejb means?
Can remove() be a Stateless Session bean?
What is ejb and its architecture?
Define Clone?
What is ejb and its uses?