protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		Connection connection = null;

		try {

			Type type = Type.JDBC;

			if (type == Type.JDBC) {

				Class.forName("oracle.jdbc.driver.OracleDriver");

				connection = DriverManager.getConnection("jdbc:oracle:thin:@Primavera-db-dev.pseg.com:1521:s235z4d", "prim_load", "load_prim_dev");

			} else if (type == Type.DataSource) {

				Hashtable<String, String> ht = new Hashtable<String, String>();
				ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
				// ht.put(Context.PROVIDER_URL, "t3://pmis-app:8025");

				Context ctx = new InitialContext(ht);
				DataSource ds = (DataSource) ctx.lookup("STAGING_DEV");
				connection = ds.getConnection();
				ctx.close();
			}

			System.out.println("Type=" + type.name());

			ArrayList<String[]> resultList = exeQuery(connection, "select current_period, current_year from global", null);
			for (String[] strings : resultList) {
				System.out.println(strings[0]);
				System.out.println(strings[1]);
			}

		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (NamingException e) {
			e.printStackTrace();
		} finally {
			if (null != connection) {
				try {
					connection.close();
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
		}
	}