/*
 * Created on 28 avr. 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.injac.oai.server;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

import org.apache.log4j.PropertyConfigurator;
import org.oclc.oai.server.OAIHandler;
/**
 * @author shoam
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class InjacOAIHandler extends OAIHandler  {
	public void init(ServletConfig config) throws ServletException{
		super.init(config);
		String prefix =  getServletContext().getRealPath("/");
	    String file = "WEB-INF/classes/log4j.properties";
	    // if the log4j-init-file is not set, then no point in trying
	    if(file != null) {
	      PropertyConfigurator.configure(prefix+file);
	    }
	  }

}
