• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MultiThreaded Bean

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic