Carlos Ruiz - 2004-03-30

Hi , recently i code some servlets for a web application using db2 and a

AS400JDBCConnectionPoolDataSource

i'm seeing problems with the memory of my server, using a severals servlets, i was wondering how the Manager class work?

This is an example of how i'm coding ...

private String getCalca(){

   Manager.getInstance().setDataSource(Db2DataSource.getDataSource());

          GequipManager em = GequipManager.getInstance();
          GequipBean eb;
          try{

            eb = em.loadByPrimaryKey(new Integer(cIdEquip));
            cCalcaEco = eb.getCalca();
          }catch(SQLException e){
             System.out.println(e.getMessage());
          }

}

is the Manager class destroyed by the garbage collector every time the method is called?

Thanks and Regards.