Where a bean can be used ?
Answer / 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 |
Why is ejb used?
What are the various types of entrepreneur java bean?
What is an entity and its types?
What is a local interface?
Can an ejb send asynchronous notifications to its clients?
Which is more beneficial: CMP or BMP?
How to determine, that beans are TX or not?
What is the purpose of ejb in java?
Can more than a single table be mapped in cmp?
What is @injectmock?
Is soap stateless or stateful?
What is a ejb container?