上面的老大在weblogic中ejb部署成功,你说的view jndi tree 在什么位置,能说细点吗?我用的是weblogic 7,
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);
我们还年轻牛奶会有的奶牛也会有的
可天天在 csdn 混这些会有吗 ??
initContext.setUrl("t3://localhost:7001");\\initContext是我初始化环境的对象
Context ctx = initContext.getContext();
baseInfoHome =(BaseInfoSessionLocalHome)ctx.lookup("BaseInfoSessionLocal");
//Object ob = ctx.lookup("BaseInfoSession");
//baseInfoHome = (BaseInfoSessionHome)PortableRemoteObject.narrow(ob,BaseInfoSessionHome.class);
在lookup远程home对象时(后三行),正常.
Properties h = new Properties ();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ctx = new InitialContext(h);