• 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

Stateless Session Bean

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am new to EJBs, just started. I am stuck on one question :
What is true about Stateless session beans :
1. They are concurrent
2. initiated by client
3. destroyed after the request

Thanks in advance for the help !
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

They are concurrent



One bean will service one client at a time. Several beans can be servicing their own separate clients.

initiated by client



Once the client calls a business method the bean is pulled out of the pool and asked to service the client. So i guess that would be true.

destroyed after the request



It goes back into the pool. So I wouldnt use the word destroyed.
 
Bartender
Posts: 3904
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Meyers:


quote:
--------------------------------------------------------------------------------
initiated by client
--------------------------------------------------------------------------------



Once the client calls a business method the bean is pulled out of the pool and asked to service the client. So i guess that would be true.



Stateless bean is initiated (created, initialized) by the server.

And stateless bean can not been removed by client too. It is removed by server too.
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic