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 165 of 175    Print  
What is "reentrant"? Why we use this in the deployment descriptor? Explain with an example.

  
Total Answers and Comments: 2 Last Update: February 01, 2007     Asked by: Somashekhara 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: santh kumar
 
The "reentrant " element dictates whether our bean can call itself through another bean.For exmple, take two beans are there in EJB container named "beanA" and "beanB".There is an element " True " in the ejb-jar.xml , deployment descriptor.If it has been set to True, If beanA calls beanB, in turn it (beanB) calls back beanA. this loop back call is possible.If it has been set to False, the above said case is not possible.This is special case of multi threading because it is only one path of execution that happens to loop back on itself.If we would like to support this " reentrant " behaviour, we should set this setting to True, so thatContainer will allow two threads to run inside of a beanA at once.If we wont that behaviour , we should set it to "False" .with regards,santh

Above answer was rated as good by the following members:
romatl, muktasharad
January 29, 2007 07:54:54   #1  
sennee        

RE: What is "reentrant"? Why we use this in the deploy...
The term reentrant is the word you can find in Deployment Descriptors. when a bean is executing a client request in a given tranaction context and another request with the same transaction context arrives for the same entity bean, then what should the container do with second request? The Non-reentrant and reentrant instances are best explained in the ejb specification. Refer to Section 10.5.11 in EJB 2.0 specification.
 
Is this answer useful? Yes | No
February 01, 2007 06:11:43   #2  
santh kumar Member Since: February 2006   Contribution: 22    

RE: What is "reentrant"? Why we use this in the deploy...
The "reentrant " element dictates whether our bean can call itself through another bean.For exmple, take two beans are there in EJB container named "beanA" and "beanB".There is an element " True " in the ejb-jar.xml , deployment descriptor.If it has been set to True, If beanA calls beanB, in turn it (beanB) calls back beanA. this loop back call is possible.If it has been set to False, the above said case is not possible.This is special case of multi threading because it is only one path of execution that happens to loop back on itself.If we would like to support this " reentrant " behaviour, we should set this setting to True, so thatContainer will allow two threads to run inside of a beanA at once.If we wont that behaviour , we should set it to "False" .with regards,santh
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    

 Related Questions

Answered by Jey on 2005-05-08 11:23:41: In J2EE application modules are packaged as EAR, JAR and WAR based on their functionality  JAR: EJB modules which contains enterprise java beans class 
Latest Answer : EAR is an EEnterprise Aapplication archive and may contain ejb JAR files, WAR files, and RAR (connector) files. They may also contain third-party libraries - but you have to know how to manipulate the Java extension facilities (e.g. MANIFEST.MF Class-Path ...

Answered by Jey on 2005-05-08 12:59:41: Deployment Descriptor is a XML document with .xml extenion. It basically descripes the deployment settings of an application or module or the component. At runtime 
Latest Answer : Deployment Descriptor is a XML document with .xml extenion. It basically describes the deployment settings of an application . At runtime webcontainer reads the deployment descriptor and understands  which .class file is mapped to the url-patteren ...

Answered by Jey on 2005-05-08 12:09:49: Re-entrant means where Bean A calls methods of Bean B and then Bean B turns around and calls methods of Bean A. The above all within a single thread of control. 
Latest Answer : Also, check the deployment descriptor called in weblogic-ejb-jar.xml. If methods are marked as Idempotent, then repeated calls to the same method with the same parameters has exactly the same effect as a single call. Useful ...

Why are ejbActivate() and ejb Passivate() included for stateless session bean even though they are never required as it is nonconversational bean
To have a consistent interface, so that there is no different interface that you need to implement for Stateful Session Bean and Stateless Session Bean. Both Stateless and Stateful Session Bean implement 

Can we use instance variables in Stateless session beans? If yes, Why and How? If the answer is no , explain why and how?

Latest Answer : It is web.xmlthis file contain mapping of ActionServlet with the configuration file for single or multipleinfo about url atternmapping of tag uri with struts tags locationPardeep Dureja ...
Read Answers (4) | Asked by : srinu

As per the weblogic ejb documentation:ejb-jar.xml and weblogic-ejb-jar.xml are the deployment descriptor files required one per ejb. My question is how about multiple ejb deployments?Thanks
Read Answers (3) | Asked by : hmashruf

What is "reentrant"? Why we use this in the deployment descriptor? Explain with an example.
Read Answers (2) | Asked by : Somashekhara

Why wait(), notify() and notyfyAll() methods are avialble in Object class but not in Thread class? Explain. 
Latest Answer : wait(), notify() and notyfyAll() methods these are inherited from Object class.if you call wait() method, it will enter in to the monitor for specfic time or ideal time when call notify() it will enter from the waiting pool to ready stateWhen notifyAll() ...


 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
 

Explain about TNSPING

You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID. Open Command prompt. Write tnsping < SID for the database connectivity you want to check > If you get the message “Used TNSNAMES
 

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
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

HR Interview - How To Succeed At HR Interviews

How To Succeed At HR Interviews There are a number of things you will need to do in order to make sure you pass the interview process Your appearance is something that you will want to pay close attention to Even if you feel that your appearance shouldn t be a factor in whether or not you re highere
 





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