Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  




Share on Google+Share on Google+

Shyam Sunder Reddy
1 Answer(s)      8 years ago
Posted in : EJB
View Answers

November 20, 2008 at 11:04 PM

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 :



Related Tutorials/Questions & Answers:
ejb  why ejb components are invisible components.justify that ejb components are invisible
ejb  what is ejb   ejb is entity java bean
EJB  How is EJB different from servlets
EJB  what is an EJB container?   Hi Friend, Please visit the following link: EJB Container Thanks
Ejb  what kind of web projects requires ejb framework
Ejb  what kind of web projects requires ejb framework
Ejb  what kind of web projects requires ejb framework
EJB  Hi, can any one please share the Document of EJB. I want to learn EJB from basic. Thanks a lot in advance
EJB  Please post screen shots of developing EJB pgms and also provide details about the files generated while we are developing applications using EJB
ejb  what is the best book to study ejb with examples in weblogic with (netbeans or eclipse)   Please visit the following link:
ejb - EJB
ejb  how can i run a simple ejb hello application.please give me...: Hope
EJB  i want to make a small application using EJB ,pls any one can tell me how i can deploy EJB in server ???   Hi You can start from anywhere on this site! for introduction and deployment of EJB Tutorial visit
How to execute EJB(Entity bean) in desktop application   Dear Firends, I have one doubt about EJB that is "How to execute EJB(Entity bean) in desktop application using java in windows? Please reply quickly, i need very urgently
EJB  i want to know coding for providing fault-tolerance for EJB componenti.e., coding in EJB for transaction process(deposit and withdraw) using JDBC connection. please send me the code as soon as possible
Learning EJB  What i need to know to start doing programming in EJB
EJB  Dear Sir , Which book is good for learning EJB . THANKS AND REGARDS, SENTHILKUMAR.P
ejb - EJB
of 3.0 version.  Hi friend, EJB : The Enterprise JavaBeans architecture or EJB for short is an architecture for the development and deployment... and budget. EJB 3.0 New Features Following are the new features of EJB
EJB  What is the difference between EJB 2.0 and EJB 3.0? GIVE ME.../ejb/ Thanks. Amardeep  Hi friend, Difference between EJB 2.0 and EJB 3.0 EJB 2.0 It is very complex, difficult to learn/use
:// Thanks
to : Thanks
EJB-MDB  What are the MDB transaction attributes
java EJB - EJB
java EJB  Please, Tell me the directory structure of EJB applications and how to deploy ejb on glassfish server
Types of EJB? - EJB
Types of EJB?  Explain different types of EJB and how it will be differ from one to another?  Hi friend, Read for more information.
ejb vs hibernate - EJB
ejb vs hibernate  1>>> If we have ejb entity bean why we need hibernate? 2>>> Is hibernate distributed
EJB in jsp code - EJB
EJB in jsp code  Suppose in EJB we created the session bean, remote... can we access the EJB methods in the jsp file.... if u can present me... the following links:
EJB Environment
EJB Environment  can we work EJB in JDK1.4
how to call ejb with in another ejb - EJB
how to call ejb with in another ejb  Does any one have idea about to call ejb with in another ejb
java - EJB
java  execution process of ejb
Design patterns in ejb - EJB
on design patterns in EJB iam toally new to this concept(i.e design patterns)  Hi friend, The job of the EJB developer is constantly challenging... of design patterns, strategies, and best practices for EJB design and development
EJB communication - EJB
EJB communication  i am trying to create call a bean from another bean but it will not call. i cann't understand the dd configuration.please help me
EJB Example - EJB
EJB Example  Hi, My Question is about enterprise java beans, is EJB stateful session bean work as web service? if yes can you please explain... the following link: Hope