File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MultiThreaded Bean

 
sitaram irrinki
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which bean can be called as Multi-Threaded bean ?
(a) Entity beans
(b) Stateless Session beans
(c) Stateful Session beans
(d) Pooled Stateless Session beans
 
Valentin Tanase
Ranch Hand
Posts: 704
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Admitting that entity and SLSBs are multithreaded components, while a bean instance is single threaded, I would go with a) and b). Am I right?
However some containers like weblogic have special flags that could enable a SFSB to be multithreaded as well. Hence if this question comes from a bea exam, then one could consider c) as a possible answer. Confusing enough? Gosh I hate these questions :-)
 
Ven Muk
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I learning ejb, im not sure about my answer

I would think sesisonbean are single threaded and entity beans are multithreaded.

For SessionBeans, there will be several session bean instances in the pool and each will fullfill the request for each client business method call.
After fullfilling the request of the client, the bean goes back to the pool.
Since each bean is for each client, it is single threaded.

But for Entity bean, each bean can handle multiple request from the client, so it is multithreaded.

Is it correct?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic