I simply browsed the java code for 'find(' and check if iterators are
closed.....I also see some methods returning open iterators... how can
we be sure they are closed?
Are we sure that the iterator of a performFind service call is closed?
Hans
On Fri, 2008-08-29 at 04:24 -0600, David E. Jones wrote:
> Yes, that does need to be closed! I made the change in rev 690171.
>
> BTW, did you find this by seeing an error about it not being closed? In theory that is what is supposed to happen...
>
> -David
>
>
> Hans Bakker wrote:
> > I have several customer installations which have the same problem:
> > running out of database connections...
> >
> > So there should be in the system that database iterators are not closed?
> >
> > for example in createUserLoginPasswordHistory in logionServices.java,
> > line 391:
> > EntityListIterator eli = delegator.find("UserLoginPasswordHistory",.....
> >
> > but is see no eli.close()
> >
> > do i see this wrong or should this be corrected?
> >
> > anybody else have the same database connections problem?
> >
--
Antwebsystems.com: Quality OFBiz services for competitive prices