On Sat, 1 Jun 2002 18:43, Andrei Ivanov wrote:
> Hi,
> What is the correct way to unallocate / limit resources (number of open
> sockets etc) in Cornerston's ServerSocketFactory. 

The SocketManager does not limit connections in any way but you can limit the 
connections in ConnectionManager by passing in a ThreadPool that only has a 
limited number of items in pool. 

Without looking at the code I believe there was a method like 

ThreadPool getThreadPool(ThreadManager)

or maybe 

String getThreadPoolName()

Overide these in AbstractService and return a pool that has a fixed size. And 
that should limit number of connections occuring.

-- 
Cheers,

Peter Donald
Sufficiently advanced science is 
 indistinguishable from magic" 
               -- Arthur C. Clarke


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

Reply via email to