Customizing the Message Terminator

2008-12-15 Thread Mithun Gonsalvez
Hi All, I am writing a custom server, which receives a command and the from a map containing different responses, it obtains the selected response and responds. Using CommandPrompt, it works without any problems. The commands that are sent do not contain CR/LF as terminator, instead it is ended

With 1.0.0-M4 I can't connect myself with localhost or 127.0.0.1

2008-12-15 Thread Ulysess Lee 李宇光
I improve my server with newest version of Ftp Server(M4) and then found that I can't connect myself with 127.0.0.1. my real ip in network is 10.10.10.16, then I used this ip that is ok. I want to know what make this happen! is it DataConnectionConfigurationFactory? My server code is simple:

Re: Customizing the Message Terminator

2008-12-15 Thread Ashish
You can very well do this in your ProtocolDecoder. Are you using CumulativeProtocolDecoder or TextLineDecoder? On Mon, Dec 15, 2008 at 2:53 PM, Mithun Gonsalvez mithungonsal...@gmail.com wrote: Hi All, I am writing a custom server, which receives a command and the from a map containing

Re: Customizing the Message Terminator

2008-12-15 Thread Ashish
Try creating an instance of TextLineCodecFactory with this contructor public TextLineCodecFactory(Charset charset, String encodingDelimiter, String decodingDelimiter) Use the desired encoding and decoding delimiter's Good Luck!

Re: Customizing the Message Terminator

2008-12-15 Thread Mithun Gonsalvez
Hi Ashish, I am using a TextLineCodecFactory with input as Charset.forName(US-ASCII) When i try with a Socket, and just send data to the server it does not work without '\r\n' (this i have confirmed) Sorry for responding a bit late :) I will look into CumulativeProtocolDecoder and

Re: Mina write problem.

2008-12-15 Thread Ashish
Is it possible for you to provide the sample snippet and can you try this again with MINA 2.0 M4 On Thu, Dec 11, 2008 at 6:11 PM, Tasneem Yusuf tasneem.yu...@gmail.com wrote: Hi, I am using Mina 1.1.0 for developing a server using Java 1.5. I'm facing a problem with writing data back on

Re: Mina Threading

2008-12-15 Thread Emmanuel Lecharny
Stephane Rainville wrote: Oups !! And I keep thinking people should be more clear when they write :) I use MINA 2.0 M3 I'm not looking for a thread analysis The thread analysis will give you (and us) more information about the running threads. but a simple pointer of why I have more

Re: Maximum User Login Limit without having it activated

2008-12-15 Thread Niklas Gustavsson
Just to confirm, have you also configured the general concurrent connection limit max-logins=0 on the server element if you're using the XML config? From what I can see in the provided log, the user doesn't seem to log out, is that really the correct behavior or was that only for testing? /niklas