Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Where a bean can be used ?

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


Please Help Members By Posting Answers For Below Questions

How does ejb work in java?

981


What is @enableautoconfiguration?

1031


Is ejb a framework?

971


How to increase ejb transaction timeout in weblogic?

1137


What is ejb container?

1156


Which is more beneficial: CMP or BMP?

1028


Differentiate Conversational from Non-conversational interactions?

1032


How can one EJB be called from within another EJB?

984


What are the differences between ejb 3.0 and ejb 2.0?

1010


What do you mean by ejb ql?

1032


What is stateless and stateful?

1071


Explain ejbhome and ejbobject in ejb?

1061


Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?

993


Which services are provided to ejb components by the ejb container?

1140


Is it possible to share an httpsession between a jsp and ejb?

913