/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.huihoo.jfox.util;

import javax.naming.Context;
import javax.naming.InitialContext;

/**
 * »º´æÒ»¸ö¡¡InitialContext ʵÀý
 *
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */

public class InitialContextHelper {
  private static Context ctx = null;
  static {
    try {
      ctx = new InitialContext();
    }
    catch(Exception e){
      e.printStackTrace();
      throw new RuntimeException(e.getMessage());
    }
  }

  public static Context getInitialConext(){
    return ctx;
  }

}