我写了一个sessionbean:GetUserFunction,并已经deploy,测试程序这样写的:
Context ctx = new InitialContext();
GetUserFunctionHome home = (GetUserFunctionHome)ctx.lookup"GetUserFunction");
可执行下面一句时报错:Receive timed out!
怎么回事?
你的sessionbean是本地的还是远端的?
Context ctx = new InitialContext();不对
GetUserFunctionHome home = (GetUserFunctionHome)ctx.lookup"GetUserFunction");
添加:如weblogic
*/
String url="t3://localhost:7001";localhost=127.0.0.1可能你的改一下
Properties h = new Properties ();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(h);
你可以在网上查查
jboss3Opentool的响应配置