File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Number of EJB Home Instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Number of EJB Home Instances" Watch "Number of EJB Home Instances" New topic

Number of EJB Home Instances

Vishal Vohra

Joined: Jun 03, 2008
Posts: 8

I have read in some books that only single instance of EJBHome is created irrespective of the number of clients accesing the Session or Entity beans.
Is it true and if this is so what will be its implications when multiple threads want to access the bean. I mean will it be thread safe?
Secondly, does it really need to be thread safe as there will be always unique instances of EJBObject and their corresponding Beans for these EJBHme instances.
It is sorta covered in the JavaRanch Style Guide.
subject: Number of EJB Home Instances