你改一下:
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);
Object object = ctx.lookup("真正的jndiName");
可不是
java:comp/env/ejb/Employee
他应该映射到的jndiName 如 com.petstore.account
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);
Object object = ctx.lookup("真正的jndiName");
可不是
java:comp/env/ejb/Employee
他应该映射到的jndiName 如 com.petstore.account
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货