According to the spec, we must provide one of the following combinations for certain session/entity bean in ejb-jar.xml file:
1. Local home interface + Local component interface + Bean Class
2. Remote home interface + Remote component interface + Bean Class
3. Local home interface + Local component interface + Remote home interface + Remote component interface + Bean Class
(Note: No other combination is valid.)
The bean class does not implement component interface directly. The corresponding container-generated EJBObject code implements this interface and delegates to the enterprise bean. The EJBObject acts as a proxy, intercepts the remote object invocations and calls the appropriate methods on the enterprise Bean instance.
Thanks,
Mahesh
--------
SCJP 1.4 |SCWCD 1.4 | SCBCD 1.3 |
SCEA Part I - In Progress