Re: TCP Sockets missing responses

2007-10-12 Thread Adam Fisk
I've seen this type of thing when I don't read all the data in the NIO buffers all the time, across message boundaries. I personally use state machines for all my decoding, and you really need to make sure you read all available data and store it (in my case in whatever message reading state I'm i

Is this right? "The default number of the I/O processor threads is 1."

2007-10-12 Thread blazespinnaker
According to the help on http://mina.apache.org/configuring-thread-model.html it says that the default number is one. However, I always get 16. I can't even figure out how to make it one thread. Is that supposed to say it starts at one and grows to 16? The suggest is to based it on the

Synchronisation in protocol codec

2007-10-12 Thread blazespinnaker
Hi folks, this is a newbie question .. wanted to confirm how messages get sent out when push from multiple threads. Does the text line protocol Codec synchronize them? My understanding from reading the code that it does, but I might have missed something. Right now my code is saying the same th

TCP Sockets missing responses

2007-10-12 Thread Gustavo
Hi MINA comunity! I'm having a strange problem with TCP Sockets. I'm connecting to a server to exchange messages (this exchange is asynchronous), I'm using encoders and decoders to translate between these strings and my objects. I have a MINA client inside an EAR, running on a JBoss 4.0.2. When I

[jira] Created: (DIRMINA-456) Provide mechanism for flushing writeBuffer from IoHandler.messageReceived

2007-10-12 Thread Mike Heath (JIRA)
Provide mechanism for flushing writeBuffer from IoHandler.messageReceived - Key: DIRMINA-456 URL: https://issues.apache.org/jira/browse/DIRMINA-456 Project: MINA Issue T

Re: Reusing SocketConnector

2007-10-12 Thread Mike Heath
chihiro wrote: My requirement is simple: 1) Object <=read from a queue (ConcurrentLinkedQueue) 2) Connect to a remote server via MINA and transmit the Object. In one of the previous posts, Trustin mentioned that one could just reuse the SocketConnector if one were connecting to the same host.

Re: IoSocketConnector max connection

2007-10-12 Thread Mike Heath
liquidchen wrote: So, if I just want to control the max connection number to the remote site, what will be the best solution to do this?? Use IoFilter to control it?? But I dont want to close new incoming connection if max connection number reach, I just want to block it to wait connection releas

Re: WSDL on MINA?

2007-10-12 Thread Mike Heath
Eero Nevalainen wrote: Has someone implemented WSDL (Web Services Description Language) on top of MINA? I think you would be better served using something like XFire in conjunction with MINA rather than trying to implement WSDL specifically for MINA. -Mike

Re: ByteBuffer capacity shrinks with every new connection

2007-10-12 Thread Mike Heath
Rob Butler wrote: Interesting. Is there a way to override this behavior? For example, with DNS you will often receive messages that are 512 bytes or less. But you would always want the buffer to be ready to accept at least 512 bytes. With DNS extensions messages of 2048 bytes or more can be se

Re: You guys know that the build of mina fails, rite?

2007-10-12 Thread Mike Heath
Make sure you have the latest code and do a clean build. Everything is working fine for me. After ByteBuffer to IoBuffer change, I had to do a clean build though. -Mike Frederick Haebin Na wrote: http://svn.apache.org/repos/asf/mina/trunk/core Well, my eclipse says that the sources of the

Re: Move MINA SM to Trunk

2007-10-12 Thread Mike Heath
Julien Vermillard wrote: Hi, I'm playing a little with MINA SM (State Machine) from Niklas sandbox it's a very nice SM implementation and quite useful for server/protocol implementation. I think it's time to move it in trunk as a new module. WDYT ? +1

Re: ByteBuffer capacity shrinks with every new connection

2007-10-12 Thread Rob Butler
Interesting. Is there a way to override this behavior? For example, with DNS you will often receive messages that are 512 bytes or less. But you would always want the buffer to be ready to accept at least 512 bytes. With DNS extensions messages of 2048 bytes or more can be sent/received. Ro

Re: ByteBuffer capacity shrinks with every new connection

2007-10-12 Thread pingvishal
Hi, its for every new message received (ignore my prev mail .. i did some check to post this again) .. however, whats happening is .. the server has dispatched the entire packet and i dont receive it that way .. (the packet sizes are really small .. abt 200 bytes .. and the ByteBuffer capacity go

Re: MINA TCP/IP server clustering

2007-10-12 Thread Jeff Genender
I wrote an implementation of GCache (Geronimo Cache) that is in the Geronimo sandbox. Its a clustering implementation based on Mina. Its nto complete yet, but it gives you an idea. It is not JVM level, since it API based. If you are looking for an open source impl for a JVM based clustering con

Re: You guys know that the build of mina fails, rite?

2007-10-12 Thread Mark
you may have the source code checked out of the trunk, but that does not mean that it is up to date ;) On 10/12/07, Frederick Haebin Na <[EMAIL PROTECTED]> wrote: > > http://svn.apache.org/repos/asf/mina/trunk/core > > Well, my eclipse says that the sources of the mina core and subprojects > are >

Re: MINA TCP/IP server clustering

2007-10-12 Thread Eero Nevalainen
Kumaran Arul wrote: Hi Has anyone got any experience with clustering MINA servers at a JVM level? How can we replicate IoSessions? Would Terracotta be a good choice? Any lead or tips will be greatly appreciated? A google with the keywords " load balancing terracotta " confirmed my earli

Re: Move MINA SM to Trunk

2007-10-12 Thread Trustin Lee
On 10/12/07, Julien Vermillard <[EMAIL PROTECTED]> wrote: > Hi, > > I'm playing a little with MINA SM (State Machine) from Niklas sandbox > it's a very nice SM implementation and quite useful for server/protocol > implementation. I think it's time to move it in trunk as a new module. > > WDYT ? +1

ByteBuffer capacity shrinks

2007-10-12 Thread pingvishal
Hello All, am facing this strange issue of the socket's receiving Bytebuffer capacity reducing into half (start from 4096) with each request/response. (For ex. i start with 4096 capacity, recv a message->send a message back, when i receive again, its reduced to half ..) i have a SocketConnector a

Re: ByteBuffer capacity shrinks with every new connection

2007-10-12 Thread Trustin Lee
On 10/12/07, pingvishal <[EMAIL PROTECTED]> wrote: > > Hello All, > > am facing this strange issue of the socket's receiving Bytebuffer capacity > reducing into half (start from 4096) with every new connection .. > i have a SocketConnector and am using a ProtocolCodec (tried using a > CumulativePro

Move MINA SM to Trunk

2007-10-12 Thread Julien Vermillard
Hi, I'm playing a little with MINA SM (State Machine) from Niklas sandbox it's a very nice SM implementation and quite useful for server/protocol implementation. I think it's time to move it in trunk as a new module. WDYT ? Julien

MINA TCP/IP server clustering

2007-10-12 Thread Kumaran Arul
Hi Has anyone got any experience with clustering MINA servers at a JVM level? How can we replicate IoSessions? Would Terracotta be a good choice? Any lead or tips will be greatly appreciated? Regards Arul *** CAUTION: This email a