InitialContext ic = new InitialContext(); ds = (DataSource)ic.lookup(dataSourceJNDIName); ic.close();
   public void setDataSource(String dataSourceJNDIName) throws Exception   {      this.dataSourceJNDIName = dataSourceJNDIName;      InitialContext ic = new InitialContext();      ds = (DataSource)ic.lookup(dataSourceJNDIName);      ic.close();   }