Where a bean can be used ?



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

Post New Answer

More EJB Interview Questions

What happens when I change a value in the httpsession from inside an ejb?

0 Answers  


What are the steps involved in creating a Bean?

2 Answers  


What is ejb home object?

0 Answers  


What is an entity manager?

0 Answers  


How entity beans support container managed persistence?

0 Answers  






What are the key benefits of the ejb technology?

0 Answers  


What is ejb and its architecture?

0 Answers  


whatis the diff between ejb and servlet/jsp

6 Answers   TCS,


What is enterprise bean provider?

0 Answers  


What is ejb role in j2ee?

0 Answers  


What is an entity and its types?

0 Answers  


Can the primary key in the entity bean be a Java primitive type such as int?

2 Answers   CTS,


Categories