Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML

Fresher Job


 

Search Host

Monthly Fee($)
Disk Space (MB)
Register With us for Newsletter!
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

Tutorials

Java Server Pages

JAXB

Java Beans

JDBC

MySQL

Java Servlets

Struts

Bioinformatics

Java Code Examples

Interview Questions

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Web Promotion

Web Submission

Submit Sites

Manual Submission?

Web Promotion Guide

Hosting Companies

Web Hosting Guide

Web Hosting

Linux

Beginner Guide to Linux Server

Frameworks

Persistence Framework

Web Frameworks

Free EAI Tools

Web Servers

Aspect Oriented Programming

Free Proxy Servers

Softwares

Adware & Spyware Remover

Open Source Softwares

EJB
Expert:Shyam Sunder Reddy
What is the difference between Stateless session bean and Statefull session bean? what are the lifecycle methods of both SLSB and SFSB
Answers
Hi friend,

Some points to be remember for difference between Stateless session bean and Statefull session bean.



*) Stateful beans are also Persistent session beans.
They are designed to service business processes that span multiple method requests or transactions.

*)Stateless beans are designed to service business process that last only for a single method call or request.

*) Stateful session beans remembers the previous requests and reponses.
Stateless session beans do not remember the previous request and responses.

*)Stateful session beans does not have pooling concept.
Stattless session bean instances are pooled.

*) Stateful S.Beans can retain their state on behave of an individual client.
Stateless S.Beans donot maintain states.

*) Stateful S.Beans can be passivated and reuses them for many clients.
Stateless S.Beans, client specific data has to be pushed to the bean for each method invocation which
result in increase of network traffic.

*)Stateful session beans have the passivated and Active state which the Stateless bean does not have.

*)Stateless Session beans are scalable and can therefore be replaced by an enhanced model whereas Stateful Session beans are not scaleable.

*)state full session bean will maintain the state of the client with server.with activate&passivate methods.

*)ejbActivate() and ejbPassivate() methods are not called in Stateless session beans

For life cycle methods of both SLSB and SFSB visit to :

http://www.roseindia.net/ejb/SessionBean.shtml

Thanks



More Questions
Post Answers
 
Ask Question Facing Programming Problem?
Useful Links
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.