📄 environment.java
字号:
package bible.ejb.session.example1;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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -