我无法理解为什么在所有指南中都写使用这个:
SayHiRemote sayHiRemote = InitialContext
.<SayHiHomeRemote> doLookup(SayHiHomeRemote.JNDI_GLOBAL_NAME)
.create();
sayHiRemote.hi();
而不仅仅是:
SayHiRemote sayHiRemote = InitialContext
.<SayHiRemote> doLookup(SayHiRemote.JNDI_GLOBAL_NAME);
sayHiRemote.hi();
如果不需要参数(无状态会话 Bean),“create()”方法有什么好处?