What is re-entrant. Is session beans reentrant. Is entity beans reentrant

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. This is also called as loopback. 
 
Entity beans are the only one bean that is reentrant. Neither Session bean nor Message Driven Bean are reentrant. When Entity bean, we have to declare in the deployment descriptor whether it is reentrant ( true or false). 
 
True/False 
 
 

Showing Answers 1 - 2 of 2 Answers

Jey

  • May 8th, 2005
 

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. This is also called as loopback. 
 
Entity beans are the only one bean that is reentrant. Neither Session bean nor Message Driven Bean are reentrant. When Entity bean, we have to declare in the deployment descriptor whether it is reentrant ( true or false). 
 
True/False 
 
 
 

  Was this answer useful?  Yes

akundu

  • Oct 3rd, 2006
 

Also, check the deployment descriptor called <idempotent-methods> 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 though not directly relevant to the re-entrant discussion.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions