environment.java
来自「100多M的J2EE培训内容」· Java 代码 · 共 51 行
JAVA
51 行
package bible.ejb.session.example2;import javax.naming.*;import java.util.*;/** * Class Environment * * * @author * @version %I%, %G% */public class Environment { /** Field JNDI_FACTORY */ public final static String JNDI_FACTORY = "weblogic.jndi.WLInitialContextFactory"; /** Field WEBLOGIC_URL */ public final static String WEBLOGIC_URL = "t3://localhost:7001"; /** * Method getInitialContext * * * @return * * @throws NamingException * */ public static InitialContext getInitialContext() throws NamingException { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY); env.put(Context.PROVIDER_URL, WEBLOGIC_URL); return new InitialContext(env); }}/*--- Formatted in Bible Style on Thu, Sep 6, '01 ---*//*------ Formatted by Jindent 3.24 Gold 1.02 --- http://www.jindent.de ------*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?