在ejb中使用@Remote(interface.class)有什么影响吗?
换句话说。这之间有什么区别:
@Remote(MyRemoteInterface.class)
@Stateless
public class MyBean implements MyRemoteInterface {
Run Code Online (Sandbox Code Playgroud)
和这个:
@Stateless
public class MyBean implements MyRemoteInterface {
Run Code Online (Sandbox Code Playgroud)
当界面是这样的时候:
@Remote
public interface MyRemoteInterface {
Run Code Online (Sandbox Code Playgroud)
当通过远程接口使用 bean 时,这两种解决方案都可以在 JBoss 6.4 上正常工作。