ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  EJB
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
how can we decide a session bean as stateless or stateful 
without seeing jar file? i.e. by seeing the class file.
 Question Submitted By :: Bhararth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.
Answer
# 1
Session beans are non-persistent enterprise beans. They can 
be stateful or stateless. A stateful session bean acts on 
behalf of a single client and maintains client-specific 
session information (called conversational state) across 
multiple method calls and transactions. It exists for the 
duration of a single client/server session. A stateless 
session bean, by comparison, does not maintain any 
conversational state. Stateless session beans are pooled by 
their container to handle multiple requests from multiple 
clients.
 
Is This Answer Correct ?    1 Yes 4 No
Hemalatha
 
  Re: how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.
Answer
# 2
A bean is stateful or stateless can be inferred from its
deployment descriptor. 
i.e 
ejb-jar.xml
<session-type>Stateless</session-type>
 
Is This Answer Correct ?    3 Yes 0 No
King
 
 
 

 
 
 
Other EJB Interview Questions
 
  Question Asked @ Answers
 
how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.  2
What are the design goals of EJB architecture?  1
How to determine two identical beans?  1
Difference between container-managed & bean-managed persistence?  2
How bean-managed transactions will work? Wipro1
what is finder method?  1
ejbCreate in Entity bean and create method in EJB home, have the same parameters?  2
difference b/w the hybernate and entity bean Wipro4
What are the transaction management benefits of the EJB architecture?  1
How enterprise beans will handle concurrent and loopback calls on entity beans? Wipro1
What is the purpose of JNDI?  4
What are the required methods to implement EJB architecture?  2
Life cycle methods in stateless Session Beans? Virtusa3
what is ejb Tech-Mahindra3
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean? Infosys2
What are the steps involved in creating a Bean?  1
What is the relationship between an EJB component, EJB container, and an application server?  2
What is Transaction attribute?  3
What is the perpose of EJBs?  2
what are the influence factors of ejbLoad() & ejbStore()?  1
 
For more EJB Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com