你的session bean 都作好了为什么客户端不会写呢在代码里面JNDI直接调用就可以了

解决方案 »

  1.   

    Weblogic的context和普通的不一样,现在搞定了String url = "t3://PhiLiPShOT:7001";
            String user = null;
            String password = null;
            Properties properties;
            try {
                properties = new Properties();
                properties.put(Context.INITIAL_CONTEXT_FACTORY,
                               "weblogic.jndi.WLInitialContextFactory");
                properties.put(Context.PROVIDER_URL, url);
                if (user != null) {
                    properties.put(Context.SECURITY_PRINCIPAL, user);
                    properties.put(Context.SECURITY_CREDENTIALS,
                                   password == null ? "" : password);
                }
                return new javax.naming.InitialContext(properties);