You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by 박응주 <co...@isoft.co.kr> on 2001/03/08 09:30:08 UTC

Why JdbcConnectionPool does not start thread?

see JdbcConnectionPool's init method create thread for
clearning fat connections. right?
init method only create thread.
does not start it.
why?
is it mistake?
or has another meaning?

-------------------------------------------------
DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!! http://search.dreamwiz.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: Why JdbcConnectionPool does not start thread?

Posted by Berin Loritsch <bl...@apache.org>.
Eung-ju Park wrote:
> 
> found another bug. :-(
> 
>     m_currentCount--;
> is missing. in JdbcConnectionPool.recycle method.
> :-)

I found that too.  I am still working on the changes,
because there is some unstability with what I did,
and I am not sure why it is acting this way....

> 
> ----- Original Message -----
> From: "Berin Loritsch" <bl...@apache.org>
> To: "Avalon Development" <av...@jakarta.apache.org>
> Sent: Friday, March 09, 2001 6:40 AM
> Subject: Re: Why JdbcConnectionPool does not start thread?
> 
> > Eung-ju Park wrote:
> > >
> > > JdbcDataSource has some problem for my production site.
> > > I patch it.
> > > diff file is attached.
> > >
> > > fixed list
> > >
> > > 1. start background management thread.
> > > 2. add auto commit option.
> > > 3. prevent exception occur when cocurrent invoking of get method.
> > >     I don't know how to explain it. :-( . see the diff file and verify.
> >
> >
> > Thanks for the patch.  I am applying it--but cleaning up the
> synchronization
> > code.  Otherwise we are just asking for a deadlock.  (Yes I know alot of
> it
> > had to do with me).
> >
> > >
> > > ----- Original Message -----
> > > From: "¹ÚÀÀÁÖ" <co...@isoft.co.kr>
> > > To: <av...@jakarta.apache.org>
> > > Sent: Thursday, March 08, 2001 5:30 PM
> > > Subject: Why JdbcConnectionPool does not start thread?
> > >
> > > > see JdbcConnectionPool's init method create thread for
> > > > clearning fat connections. right?
> > > > init method only create thread.
> > > > does not start it.
> > > > why?
> > > > is it mistake?
> > > > or has another meaning?
> > > >
> > > > -------------------------------------------------
> > > > DreamWiz Free Mail @ http://www.dreamwiz.com/
> > > > DreamSearch Click the world!!! http://search.dreamwiz.com/
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> > > >
> > > >
> > >
> >
>   --------------------------------------------------------------------------
> ----------------------------------------------------------
> > >                 Name: jdbc.diff
> > >    jdbc.diff    Type: unspecified type (application/octet-stream)
> > >             Encoding: quoted-printable
> > >
> >
>   --------------------------------------------------------------------------
> ----------------------------------------------------------
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: Why JdbcConnectionPool does not start thread?

Posted by Eung-ju Park <co...@isoft.co.kr>.
found another bug. :-(

    m_currentCount--;
is missing. in JdbcConnectionPool.recycle method.
:-)


----- Original Message -----
From: "Berin Loritsch" <bl...@apache.org>
To: "Avalon Development" <av...@jakarta.apache.org>
Sent: Friday, March 09, 2001 6:40 AM
Subject: Re: Why JdbcConnectionPool does not start thread?


> Eung-ju Park wrote:
> >
> > JdbcDataSource has some problem for my production site.
> > I patch it.
> > diff file is attached.
> >
> > fixed list
> >
> > 1. start background management thread.
> > 2. add auto commit option.
> > 3. prevent exception occur when cocurrent invoking of get method.
> >     I don't know how to explain it. :-( . see the diff file and verify.
>
>
> Thanks for the patch.  I am applying it--but cleaning up the
synchronization
> code.  Otherwise we are just asking for a deadlock.  (Yes I know alot of
it
> had to do with me).
>
> >
> > ----- Original Message -----
> > From: "¹ÚÀÀÁÖ" <co...@isoft.co.kr>
> > To: <av...@jakarta.apache.org>
> > Sent: Thursday, March 08, 2001 5:30 PM
> > Subject: Why JdbcConnectionPool does not start thread?
> >
> > > see JdbcConnectionPool's init method create thread for
> > > clearning fat connections. right?
> > > init method only create thread.
> > > does not start it.
> > > why?
> > > is it mistake?
> > > or has another meaning?
> > >
> > > -------------------------------------------------
> > > DreamWiz Free Mail @ http://www.dreamwiz.com/
> > > DreamSearch Click the world!!! http://search.dreamwiz.com/
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> > >
> > >
> >
>
  --------------------------------------------------------------------------
----------------------------------------------------------
> >                 Name: jdbc.diff
> >    jdbc.diff    Type: unspecified type (application/octet-stream)
> >             Encoding: quoted-printable
> >
>
  --------------------------------------------------------------------------
----------------------------------------------------------
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: Why JdbcConnectionPool does not start thread?

Posted by Berin Loritsch <bl...@apache.org>.
Eung-ju Park wrote:
> 
> JdbcDataSource has some problem for my production site.
> I patch it.
> diff file is attached.
> 
> fixed list
> 
> 1. start background management thread.
> 2. add auto commit option.
> 3. prevent exception occur when cocurrent invoking of get method.
>     I don't know how to explain it. :-( . see the diff file and verify.


Thanks for the patch.  I am applying it--but cleaning up the synchronization
code.  Otherwise we are just asking for a deadlock.  (Yes I know alot of it
had to do with me).

> 
> ----- Original Message -----
> From: "¹ÚÀÀÁÖ" <co...@isoft.co.kr>
> To: <av...@jakarta.apache.org>
> Sent: Thursday, March 08, 2001 5:30 PM
> Subject: Why JdbcConnectionPool does not start thread?
> 
> > see JdbcConnectionPool's init method create thread for
> > clearning fat connections. right?
> > init method only create thread.
> > does not start it.
> > why?
> > is it mistake?
> > or has another meaning?
> >
> > -------------------------------------------------
> > DreamWiz Free Mail @ http://www.dreamwiz.com/
> > DreamSearch Click the world!!! http://search.dreamwiz.com/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
> >
> 
>   ------------------------------------------------------------------------------------------------------------------------------------
>                 Name: jdbc.diff
>    jdbc.diff    Type: unspecified type (application/octet-stream)
>             Encoding: quoted-printable
> 
>   ------------------------------------------------------------------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: Why JdbcConnectionPool does not start thread?

Posted by Eung-ju Park <co...@isoft.co.kr>.
JdbcDataSource has some problem for my production site.
I patch it.
diff file is attached.

fixed list

1. start background management thread.
2. add auto commit option.
3. prevent exception occur when cocurrent invoking of get method.
    I don't know how to explain it. :-( . see the diff file and verify.

----- Original Message -----
From: "������" <co...@isoft.co.kr>
To: <av...@jakarta.apache.org>
Sent: Thursday, March 08, 2001 5:30 PM
Subject: Why JdbcConnectionPool does not start thread?


> see JdbcConnectionPool's init method create thread for
> clearning fat connections. right?
> init method only create thread.
> does not start it.
> why?
> is it mistake?
> or has another meaning?
>
> -------------------------------------------------
> DreamWiz Free Mail @ http://www.dreamwiz.com/
> DreamSearch Click the world!!! http://search.dreamwiz.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>

Re: Why JdbcConnectionPool does not start thread?

Posted by Berin Loritsch <bl...@apache.org>.
¹ÚÀÀÁÖ wrote:
> 
> see JdbcConnectionPool's init method create thread for
> clearning fat connections. right?
> init method only create thread.
> does not start it.
> why?
> is it mistake?
> or has another meaning?

Probably an oversight...

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org