In Manning's EJB3 in Action, P77, it says "each interface that the bean intends to support must be explicitly included in the bean implementaion classe's implements clause
However, I'm sure I remember reading somewhere (can't quite find where), that implementing the business interfaces was optional.
I've looked through the spec and have found in the simplified spec (3.2) - "The bean class may implement its business interface(s). While it is expected that the bean class will typically implement its business interface(s), if the bean class uses annotations on the
bean class or the deployment descriptor to designate its business interface(s), it is not required that the bean class also be specified
as implementing the interface(s)."
This sounds like a mistake to me? I've checked the errate and it's not there.
Just checking whether it is a simple mistake, or whether I've misunderstood something.
It is not required to implement a bean interface. Instead of that, we can use @Remote/@Local annotation with the @Stateless/@Stateful annotation on the bean class. So that bean class can be used as a 'business interface' too.