
Originally Posted by
djeang
thanks andreas,
But i'm in trouble with your 4) point. I want a remote bean, Shouldn't My EJB bean implements 2) instead of 1) ?
Remote interfaces, home interfaces and deployment descriptors are normally generated (by your ide or xdoclet) from EJB classes and not hand written, so you can't use them to implement EJBs themselves.
As Andreas already wrote, even if you hand write them, there are good reasons not to do it because it allows you to treat server-side EJB instances as remote instances and that can never, ever be a good thing.