//package com.eactive.eai.adapter.wca.servlet; 
//
//import java.io.IOException;
//
//import javax.servlet.RequestDispatcher;
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import com.eactive.eai.adapter.wca.jdbc.CommonJDBC;
//import com.eactive.eai.adapter.wca.jdbc.JDBCException;
//import com.eactive.eai.adapter.wca.jdbc.JDBCFactory;
//import com.eactive.eai.adapter.wca.jdbc.SQLData;
//
///** 
//* 1. 기능 : LU 관리 서블릿
//* 2. 처리 개요 : 
//* 3. 주의사항 
//*
//* @author  : 
//* @version : 
//* @see : 
//* @since   :
//*/
//public class LURegisterServlet extends HttpServlet {
//    
//    //Logger logger = Logger.getLogger(LURegisterServlet.class);
//   /** 
//    * 1. 기능 : GET 데이타 처리
//    * 2. 처리 개요 :
//    * 3. 주의사항 
//    *
//    * @param request        HttpServletRequest 객체
//    * @param response       HttpServletResponse 객체
//    **/  
//    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {        
//        doPost(request, response);
//    }
//    
//   /** 
//    * 1. 기능 : POST 데이타 처리
//    * 2. 처리 개요 :   TYPE에 따라 함수 분기
//    * 3. 주의사항 
//    *
//    * @param request        HttpServletRequest 객체
//    * @param response       HttpServletResponse 객체
//    **/  
//    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {      
//        
//        try
//        {
//            selectLURegisterServer(request);
//            RequestDispatcher rd = getServletContext().getRequestDispatcher(PathInfoEx.P_LU_REGISTER);
//            rd.forward(request, response);
//        }
//        catch(JDBCException jdbc)
//        {
//            jdbc.printStackTrace(); 
//            String sErrorMsg = jdbc.toString();
//            request.setAttribute("errorMessage",sErrorMsg );
//            RequestDispatcher rd = getServletContext().getRequestDispatcher(PathInfoEx.P_ERROR);            
//            rd.forward(request, response);
//        }
//        catch(Exception e)
//        {
//            e.printStackTrace();
//            request.setAttribute("errorMessage", e.toString());
//            RequestDispatcher rd = getServletContext().getRequestDispatcher(PathInfoEx.P_ERROR);	    		
//            rd.forward(request, response);
//        }
//    }  
//   
//    
//    /** 
//    * 1. 기능 : LU  등록 서버 리스트 
//    * 2. 처리 개요 :
//    * 3. 주의사항 
//    *
//    * @param request        HttpServletRequest 객체
//    * @exception            JDBCException
//    **/  
//    private void selectLURegisterServer(HttpServletRequest request) throws JDBCException {
//        StringBuffer sbQuery = new StringBuffer();        
//        sbQuery.append( "select DISTINCT \"EAISevrIP\", \"SevrLsnPortName\", \"HostName\"" + 
//                        "   FROM " + TableInfoEx.T_EAI_SVR + 
//                        "   WHERE \"EAISevrInstncName\" != '" + SelectBoxData.ALL_SEARCH + "' " + 
//                        "   ORDER BY \"HostName\", \"SevrLsnPortName\" ");
//   
//        JDBCFactory factory   = JDBCFactory.newInstance();
//        CommonJDBC  common = (CommonJDBC)factory.create(CommonJDBC.class);
//        SQLData     data = common.select(sbQuery.toString());
//        request.setAttribute("RESULT", data);
//    }
//}