0 Replies Latest reply on Nov 21, 2002 11:44 AM by lesley

    Trobleshoot with closeing connections in BMP EntityBean(unse

    lesley Newbie

      Hi. I work with JBOSS 3.0.3 Server and I have following problem: container never calles unsetEntityContext and ejbPassivate methods (only when a timeout happenes). So, the result is many unclosed connections to DB, when my application works.
      How can I close connections? This example makes 100 unclosed connections:
      for (i=1;i<100;i++){
      remote=home.findByPrimaryKey(i);//setEntityContext opened connection on this position
      remote.remove();//connection is still alive
      So, 100 opened connections appeared in pool.
      How can I fix the problem?