On Jun 22, 2006, at 1:13 PM, [EMAIL PROTECTED] wrote:
Quoting peter royal <[EMAIL PROTECTED]>:
On Jun 22, 2006, at 4:28 AM, [EMAIL PROTECTED] wrote:
I am writing an application that must handle two protocols on
separate ports.
I wonder if I should declare two SocketAcceptors, or one with
two bindings.
It is not clear for me what are the pros/cons of those two configs.
You only need a single SocketAcceptor, and then bind to it twice,
once
for each port.
-pete
--
[EMAIL PROTECTED] - http://fotap.org/~osi
What is shared in this case (filters, config, thread pool...)?
any filters that are part of the configuration of the Acceptor will
be shared. Per-service filters should be added on the configuration
that you can pass into the bind() method. A thread pool will be
shared by default, but that's fine.
-pete
--
[EMAIL PROTECTED] - http://fotap.org/~osi