Please see any session bean class code, it says
public class abcxyz implements SessionBean {
.................. }
So as per Java rule the compiler will see if this class have implemented all methods from SessionBean inteface( I.e SetSessionContext,ejbPassivate,ejbActivate,ejbRemove) Only . It won't care (atleast for compling) about interface methods or component inteface methods.
Those things will be neede only when the class is been deployed in the container..
Think about this// how's the compiler supposed to know that this class should have getAdvice(), Do_not_getadvice(), give_only_goodAdvice()...etc method ?? if we have not implemented the Home/component inteface in the bean class..
FYI .. and we never ever say that the class implements home/component interface .. its all supposed to be understood by Container by looking at ejb-jar.xml file.
Hope this help..