Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Object

 
Rajib Sarma
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
 
Rick Hightower
Author
Ranch Hand
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic