Re: Database pool-controller

2004-03-03 Thread Anna Bikkina
Can someone please answer my question below.

Thanks,
Anna.


On Tuesday 02 March 2004 04:58 pm, Anna Bikkina wrote:
 Hi,

 I configured a database pool in cocoon and used the pool controller tag to
 set max and min connections in cocoon.xconf.

 When the max number of connections are used up what does cocoon do. Does it
 throw an exception to the n+1(n being max connections) or does it wait for
 one of the connections to complete their job.


 Thanks,
 Anna.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database pool-controller

2004-03-03 Thread Askild Aaberg Olsen
From SQLTransformer.java, it seems like it will wait 5 seconds, try again,
and wait again 5 times before it throws an exception. I guess the same
strategy is used in all components accessing databases.

Askild

Anna Bikkina  wrote:
 Can someone please answer my question below.
 
 Thanks,
 Anna.
 
 
 On Tuesday 02 March 2004 04:58 pm, Anna Bikkina wrote:
  Hi,
 
  I configured a database pool in cocoon and used the pool controller 
  tag to set max and min connections in cocoon.xconf.
 
  When the max number of connections are used up what does cocoon do. 
  Does it throw an exception to the n+1(n being max 
 connections) or does 
  it wait for one of the connections to complete their job.
 
 
  Thanks,
  Anna.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database pool-controller

2004-03-03 Thread Anna Bikkina
Do you know if there is a way I can configure the wait time for the 
connections?
Like I want the application to wait for a certain time for a connection . If 
connection is not available I want to display a message to the user to try 
again or something like that. 


Thanks,
Anna.



On Wednesday 03 March 2004 03:30 pm, Askild Aaberg Olsen wrote:
 rom SQLTransformer.java, it seems like it will wait 5 seconds, try again,
 and wait again 5 times before it throws an exception. I guess the same
 strategy is used in all components accessing databases.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database pool-controller

2004-03-03 Thread Askild Aaberg Olsen
Don't know where to set the wait-time, but I would rather set tha
max-pool-size higher if this turn out to be a real problem.

You can use the map:handle-errors and the notifying-generator to provide
custom error messages to the user if Cocoon casts an exception. Look at this
section of the main sitemap in the webapp-folder.

Askild
-

Anna Bikkina wrote:
 Do you know if there is a way I can configure the wait time for the 
 connections?
 Like I want the application to wait for a certain time for a 
 connection . If 
 connection is not available I want to display a message to 
 the user to try 
 again or something like that. 
 
 
 Thanks,
 Anna.
 
 
 
 On Wednesday 03 March 2004 03:30 pm, Askild Aaberg Olsen wrote:
  rom SQLTransformer.java, it seems like it will wait 5 seconds, try 
  again, and wait again 5 times before it throws an 
 exception. I guess 
  the same strategy is used in all components accessing databases.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Database pool-controller

2004-03-02 Thread Anna Bikkina
Hi,

I configured a database pool in cocoon and used the pool controller tag to set 
max and min connections in cocoon.xconf.

When the max number of connections are used up what does cocoon do. Does it 
throw an exception to the n+1(n being max connections) or does it wait for 
one of the connections to complete their job.


Thanks,
Anna.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]