我是 EJB 新手,我正在使用 Netbean IDE。我能够创建会话 bean 远程接口但无法创建 Home 接口,请帮助我...
问问题
147 次
1 回答
0
Well, if you're able to create remote interface, so I'm just curious why you are not able to create local interface.
It is as simple as it is, your local interface should look like this:
@Local
public interface MyLocalBean {
void someMethod();
}
Annotated your interface with @Local
annotation from javax.ejb
package and here you go, you have local (home) interface.
于 2012-10-05T13:17:43.720 回答