• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

pool for EjbHome & EjbObject

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

Newbie question. SO do forgive me if this sounds frivilous to you

When we say the client call is intercepted by the EJBObject.
That implies we should be having an EJBHome object & EJBObject object for each Bean(Session & Entity)running in an environment.

I just wanted to know as we have a pool of beans do we also have a pool of EJBHome & EJBObjects for each bean running in hte environment or is it that there is only one EJBHome & EJBObject per bean.

Eg) say if i have a stateless session bean (SB) & its corresponding home(SB_HOME) & component interfaces (SB_OBJECT).
Now i can have a pool of beans(SB).
My question is do we also have a pool of (SB_HOME) & (SB_OBJECT) or there would be only 1 SB_HOME & 1 SB_OBJECT

Kindly ellaborate a bit on this

Bye
Manish
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manish,

In short - these are Vendor specific!!!

In detail, for EJB Home - Most containers will have a 1:N relationship between home objects and bean instances.

EJB Object - Some containers can have a 1:N relationship, where each EJB Object is multithreaded. Other containers might have M:N relation ship, where M represents the number of EJB objects instantiated. In this case, each EBJ Object is single threaded.

So most containers will have one Home Object and one EJB Object.

If you can go through 'Mastering EJB II' @ www.theserverside.com chapter 2, you will get a clear Idea.

Cheers
~KK
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic