GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 137 of 175    Print  
How long does a stateful bean keep client-specific state?

  
Total Answers and Comments: 1 Last Update: July 22, 2006     Asked by: Krishna Reddy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 22, 2006 00:52:12   #1  
Pardeep Dureja        

RE: How long does a stateful bean keep client-specific...
Well State is retained by Stateful Session Bean till client-bean session exist 
 
Is this answer useful? Yes | No

 Related Questions

Answer posted by Mohan on 2005-05-20 08:44:39: SessionBeans typically are used to represent a client they are of two typse  Stateful Session Beans : they maintain conversational state between 
Latest Answer : Session bean is encapsulates the business logic. and carry out the task for behalf of the client. It have two types.one is stateful session bean. this is maintain the convesional state.another one is stateless session bean. donot maintain the conversional.state. ...

Answer posted by Mohan on 2005-05-20 08:45:36: Stateful session beans have the passivated and Active state which the Stateless bean does not have. 
Latest Answer : Stateful session beans follow the instance passivation techniqueStateless session beans follow the instance pooling technique.ejbActivate() and ejbPassivate() methods are not called in Stateless session beansI ...

Latest Answer : 1. doesnot exsist 2. exsists 3. passivate  invoke ejbcreate() set the sessioncontext() call create()  if the session idle call ejbPassivate() to get back to session call ejbActivate()  to end the ...

Latest Answer : 1. dose not exsist 2. exsist  to start the session set the sessionContext() call create()  to end session call remove ...

Answered by Jey on 2005-05-08 19:41:22: Session bean callback methods differ whether it is Stateless or stateful Session bean. Here they are.  Stateless Session Bean 1. setSessionContext() 2. 
Latest Answer : Please note down that ejbCreate() is not a method of Session Bean, for reference see the link http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/ejb/SessionBean . html ...

Latest Answer : I'll  take a best exmaple to explain.Statefull sessionbean : ATM operationStateless Session Bean : Credit card Once we log into the ATM by entering PIN number. We can do multiple transacations like Balance enquiry, Withdrawl, ministatement..etc... ...

Answered by Jey on 2005-05-08 12:47:06: Entity bean represents the real data which is stored in the persistent storage like Database or file system. For example, There is a table in Database called Credit_card. 
Latest Answer : entity bean are used to represent state of unique entity.for example. each employee have unique ID . ...

Answered by Jey on 2005-05-08 11:32:16: CMP means Container Managed Persistence. When we write CMP bean , we dont need to write any JDBC code to connect to Database. The container will take care of connection 
Latest Answer : CMP means Container Managed Persistence. In case of CMP bean , developers dont need to write any JDBC code to connect to Database. The container will take care of connection our enitty beans fields with database. The Container manages the persistence ...

Latest Answer : The following steps describe the life cycle of an entity bean instance  An entity bean instances life starts when the container creates the instance using newInstance and then initialises it using setEntityContext.  The instance enters ...

Answered by Jey Ramasamy on 2005-05-08 19:51:04: 1. setEntityContext() 2. ejbCreate() 3. ejbPostCreate() 4. ejbActivate() 5. ejbPassivate() 6. ejbRemove() 7. unsetEntityContext() 
Latest Answer :  setEntityContext(EntityContext) unsetEntityContext() ejbLoad() ejbStore() ejbActivate() ejbPassivate() ejbRemove() ...


 Sponsored Links

 
Related Articles

Linux Thin Client Networks Design and Deployment Review

Linux Thin Client Networks Design and Deployment Review Introduction This book is written by David Richards a veteran Linux thin client network designer Designed for System Administrators Linux Thin Client Networks Design and Deployment goes over the concepts which are related to thin client network
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Web Services and Client Server Technology

Web Services and Client Server Technology Introduction to Distributed Computing The Internet and expanded network connectivity established client sever models as the preferred form of distributed computing When talking about Client Server models of networked communication using web services the broa
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

N-Tier Client-Server Architecture

N Tier Client Server Architecture Description of 1 Tier and 2 Tier Web Applications This article will discuss the various architectures of Client Server environments Perhaps the most influential Client Server environment is the Internet and its global users With the increasing use of web application
 

Peer-to-Peer and Client-Queue-Client Architecture

Peer to Peer and Client Queue Client Architecture Client Server Architecture Compared with Peer to Peer and Client Queue Client Architecture Client Server Architecture Client Server Architecture which is the model for Internet communication separates client programs machines from server programs mac
 

Convert a String into Long Value

What string function is used to convert a string into long value? This is done by using the function named as atol() . This function atol() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement
 

Advertising Client Servicing Career

Client servicing is a crucial part of the advertising industry. The main aim of this department is to generate customers and business for the company and also develop the existing customer relationships. This department also covers the responsibilities of the public relationship officers. Advertisin
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape