• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EJB Object

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How many EJB objects exist for each client. Only 1? Are the EJB objects reusable among the client/bean instances? Please explain.
Thanks
-Rajib
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,
How many EJB objects exist for each client. Only 1?


Depends on the type of bean, i.e., session bean or entity. If session bean, stateful or statless?
Entity beans are shared by many clients. Stateful session beans have only one client. There is an affinity between session beans and clients.
Clarify your question.


Are the EJB objects reusable among the client/bean instances? Please explain.


I am not sure I understand this question. Entity beans are shared. Stateless session beans are typically pooled and their is no affinity from a client to the stateless session bean like there is with a stateful session bean and a client.
Clarify your question.
Try this free guide to Understaning EJB as follows:
Developer's guide to understanding EJB
After reading this, I think you will have an understanding of the relationship between EJBs and clients.
[ July 06, 2002: Message edited by: Rick Hightower ]
 
    Bookmark Topic Watch Topic
  • New Topic