小编Ser*_*ari的帖子

使用@Remote(interface.class)

在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 上正常工作。

annotations ejb

5
推荐指数
1
解决办法
5515
查看次数

标签 统计

annotations ×1

ejb ×1