I hope it can help you. Bean client invoke methods on EJB objects,rather than the bean themselves.To perform this,EJB objects must clone every business method that your bean classes expose.But how do the tools that autogenerate EJB objects know which methods to clone?The answer is in a special interface that a bean provider writes.This interface duplicates all the business logic methods that the corresponding bean class exposes.This interface is called the remote interface.
看这个http://www.csdn.net/develop/Read_Article.asp?Id=14181
照着做就可以。
所以你会觉得你调用的跟实际程序调用的好像不是同一个东西,但是结果确是一样的。
总的来说这是一个规范,业界的统一标准。你要做的就是遵循这些规范
Bean client invoke methods on EJB objects,rather than the bean themselves.To perform this,EJB objects must clone every business method that your bean classes expose.But how do the tools that autogenerate EJB objects know which methods to clone?The answer is in a special interface that a bean provider writes.This interface duplicates all the business logic methods that the corresponding bean class exposes.This interface is called the remote interface.