Is it possible to have threading in ejb?



Is it possible to have threading in ejb?..

Answer / Rajendra Singh Gwal

{"yes": "Yes, it is possible to use threads in EJB but with limitations.","details": "EJB containers manage the thread creation and pooling, and they are responsible for creating new threads when required or reusing existing ones. However, developers cannot create threads directly. The EJB specification does provide the SessionBean interface's setRollbackOnly() method which can be used to roll back the current transaction and terminate the running thread."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

What are the components of ejb?

1 Answers  


How to invoke ejb from java client?

1 Answers  


What are the differences between ejb 3.0 and ejb 2.0?

1 Answers  


What are the key features of the ejb technology?

1 Answers  


What is Introspection ?

2 Answers   Wipro,


What is enterprise bean?

1 Answers  


How does a container, manage access, from multiple transactions on an entity bean?

1 Answers  


How does ejbs work?

1 Answers  


What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?

1 Answers  


Why serialization is used?

2 Answers   IBM,


What are different Methods and Classes written in a Session Bean

1 Answers   DELL,


ejbCreate in Entity bean and create method in EJB home, have the same parameters?

2 Answers  


Categories