apusic連線weblogic錯誤,請教!!!

linmin發表於2004-05-29
我把war部署在apusic裡,想連線部署在weblogic裡的ejb,可apusic老提示錯誤,請問apusic能否提供連線weblogic???
war裡連線weblogic的簡單程式碼為:
String url ="t3://redwood:7003";
String user = "linmin";
String password = "88888888";
Properties properties = null;
try {
properties = new Properties();
System.out.println("000000");
properties.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
System.out.println("222222");
if (user != null) {
properties.put(Context.SECURITY_PRINCIPAL, user);
properties.put(Context.SECURITY_CREDENTIALS, password == null ? "" : password);
}

return new InitialContext(properties);
}

可老是提示環境初始化失敗,apusic容器不提供初始化webloic的環境嗎????

相關文章