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 ejb means?

0 Answers  


What is session bean?

0 Answers  


For ejb applications with bean-managed transaction demarcations, which of the following is used by the client to get a reference to the usertransaction object for the weblogic server domain?

0 Answers  


What is jar, war, and ear?

0 Answers  


What is dependency injection in ejb?

0 Answers  






What is entity bean in ejb?

0 Answers  


What is ejb framework?

0 Answers  


Name the acid properties of a transaction.

0 Answers  


What are the basic and subtypes of enterprise java beans (ejb)?

0 Answers  


Explain the concept of ejb ql?

0 Answers  


Difference between javaBeans and Enterprise JavaBeans?

1 Answers   Indotech, Tech Mahindra,


What do you mean by timer service and where it is used?

0 Answers  


Categories