public static boolean writeBoard(Board board) throws SQLException, NamingException, NoSuchAlgorithmException
	{
		int result = 0;
		
		PreparedStatement stmt = null;
		ResultSet rs = null;
		DataSource ds = getDataSource();
			
		try 
		{
			conn = ds.getConnection();
				    
			stmt = conn.prepareStatement(
					"INSERT INTO board " +
							"(name, title, content, u_id, wtime, cnt) " +
							"VALUES " +
							"(?, ?, ?, ?, NOW(), 0)" 
					);
			stmt.setString(1,  board.getName());
			stmt.setString(2,  board.getTitle());
			stmt.setString(3,  board.getContent());
			stmt.setString(4,  board.getU_id());
			
			result = stmt.executeUpdate();
		}
		catch (SQLException e)
		{
		} 
		finally
		{
			if (rs != null) try{rs.close();} catch(SQLException e) {}
			if (stmt != null) try{stmt.close();} catch(SQLException e) {}
			if (conn != null) try{conn.close();} catch(SQLException e) {}
		}
		return (result == 1);
	}