What is a session bean?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is a session bean?

Rating:

A session bean is a type of EJB (Enterprise JavaBean) that encapsulates the logic of a business process and business rules. There are two types of session beans, as classified on the basis of state mode, namely stateless session bean and stateful session bean.

A state of an object refers to the value in the instance variable.

A stateless session bean does not maintain a conversational state for a particular client, whereas a stateful session bean maintains a conversational state for a particular client.

A stateful session bean is well suited for implementing a business task dedicated to a single client that maintains a conversational state between the bean and the client. For example, a stateful session bean is required to build an online shopping cart in an e-commerce application. The information is maintained during a session. It is based on multiple calls from the client. The information includes: customerid, a list of items, customer buys, etc.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.