File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Object" Watch "EJB Object" New topic
Author

EJB Object

Rajib Sarma
Ranch Hand

Joined: Apr 29, 2002
Posts: 34
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


*** Rajib Prasad Sarma ***<br />==========================
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
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 ]

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
 
subject: EJB Object