Hi David,

----- Original Message -----
From: "David Warnock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 12:03 AM
Subject: How many broker instances?


> This may seem like a silly question. But anyway
>
> In a servlet style environment (where multiple threads operate on an
> object at a time). How many broker objects should I use?
>
> One per thread?
> One per session?
> One per request?
> One to share?

When using one per thread you 'will be on the bright side of life' ;-)

>
> What are the implications of the various options. So far I have been
> mostly writing tests where I get the broker from the factory in setUp
> and clearCache/close in tearDown, but this seems to create a new
> connection pool for each testcase object and this seems slow and
> cumbersome for an application.

Per PBKey (means different jcdAlias, or one jcdAlias but different
User/Password)
was created one PB-pool and one connection pool
(if enabled) per JVM.

regards,
Armin

>
> Thanks
>
> Dave
> --
> David Warnock, Sundayta Ltd. http://www.sundayta.com
> iDocSys for Document Management. VisibleResults for Fundraising.
> Development and Hosting of Web Applications and Sites.
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to