What is a session bean?

February 12th, 2008 by uCertify Leave a reply »

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.

Click here to download 1D0-442 test study guide and practice question. Download free practice test for CX310-019 SCJA exam.
  • Share/Bookmark
Advertisement

Leave a Reply

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