i am new to E.J.B ,i have a doubt that whether ejb-jar file must exactly contain only one HOME , COMPONENT interfaces and only one BEAN class.Also BEAN class is not implementing COMPONENT interface then how it can be able to implement the COMPONENT interface?.
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.
-------- SCJP 1.4 |SCWCD 1.4 | SCBCD 1.3 | SCEA Part I - In Progress