Hi,
EJB client holds two interfaces: one for the bean 'home', and another for
the bean interface.
The client receives two stubs, each implement one of the interfaces. The
'home' stub is received from the
InitialContext, and it's used to get the EJB interface stub:
Context ctx = getInitialContext();
MyEjbHome home = (MyEjbHome) ctx.lookup("Test.MyEjbHome"); // Get the
'home' stub
MyEjb = home.create(); // get the EJB interface stub
I would like to understand who sends the stubs.
Does the JNDI sends the 'home' stub? Who put the 'home' stub within the
JNDI?
Where from the EJB interface stub is received? What are the relation between
the JNDI, the EJB server and the Client?
I would like also to understand the mechanism used by RMI (it's probably
similar).
Is there a good article about the subject?
Thanks
Yair
------------------------------------------
Yair Enden
3 Sapir St.
46852 Herzliya
Tel:
09- 960 4935
