public void initConnection() 
	{
		//---Get Connection----
		try
		{
			//JNDI Lookups for connection to database through JDBC
			Context ic = new InitialContext();							
			datasource = (DataSource) ic.lookup("java:comp/env/" + DATA_SOURCE_NAME);
			connection = datasource.getConnection();
		}
		catch (NamingException ne)
		{	
			System.out.println("Naming Exception in DatabaseConnector.java");
			ne.printStackTrace();
		} 
		catch (SQLException e) 
		{	
			System.out.println("SQL Exception in DatabaseConnector.java");
			e.printStackTrace();
		}
	}