I using "SocketConnector()" but , use applet is also Exception ,so refresh web ,it's applet can't start with Exception "con't modifyThreads".. so in the client ,I use Socket ,and then refresh web ,applet cant restart succeed; but I can't send a object to the server use mina;
I set SocketConnector.workerTimeout only 1, no any effect; on all accounts , I want you can make the mina apply the develop the web with applet; thinks all the same; Pierre-Louis Bonicoli wrote: > > kanful wrote: >> I also can't stop the client ...do you know what's the matter now .i want >> to >> shutdown the client threads at once. but the class SocketConnector has >> no >> method to close; if you have some ideas ,please help me ,thanks for any >> answers; >> > Hi, > - creating a connection : > ConnectFuture connectFuture = mConnector.connect(this.mSocketAddress); > IoSession mIoSession = connectFuture.getSession(); > > - closing this connection : > mIoSession.close().awaitUninterruptibly(); > > Are you using "SocketConnector()" or "SocketConnector(int > processorCount, Executor executor)" ? > With the 2nd constructor you need to call executor.shutdown(). > > Notice that Trustin wrote : > >> Try to set SocketConnector.workerTimeout to smaller value (e.g. 5). > > > HTH, > Pierre-Louis > > -- View this message in context: http://www.nabble.com/client-doesn%27t-stop-tf4313277s16868.html#a12652506 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.