• 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

EJB Object

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic