Hi Mark,

You are right, we need a good example where you can cleanly shut and restart
the server.

The key to shutting down is calling acceptor.unbind() or unbindAll()
For restart: just call acceptor.bind() again.

Notice that the API has changed slightly in MINA 2.0 (not yet released)

http://mina.apache.org/report/1.1/apidocs/org/apache/mina/common/IoAcceptor.html#unbindAll()

Feel free to contribute a good example ;-)

Maarten

On 7/27/07, Mark Buetow <[EMAIL PROTECTED]> wrote:
>
>
> Hi there!  I have just grabbed a copy of MINA and am very impressed with
> its
> feature set.  I want to continue to use this for my personal development
> projects.
>
> I have a question regarding Starting and Stopping the "TimeServer" example
> code provided.  I guess it is obvious the question...
>
> Right now, the example launches inside a console window, but .. what if
> the
> server sits inside an actual application (MINA embedded) and I needed a
> way
> to stop the time server and re-start it?  None of the examples provided
> show
> me how a restart situation is handled.
>
> If you were to do it, how would the preferred way of handling that be?
>
> Thank you in advance,
> Mark Buetow
> --
> View this message in context:
> http://www.nabble.com/Stopping-Starting-Example-tf4154668s16868.html#a11820794
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> .
>
>

Reply via email to