Re: Many sockets over single socket

2007-12-11 Thread Mark
Are the fathers listening on the same port for the children? Or does each child connect to the father on a different port? On Dec 10, 2007 9:51 PM, oscarcs [EMAIL PROTECTED] wrote: I must develop a system made of nodes in a tree layout. Each node (computer) has many children and only one

Using MINA in a Log4J Appender

2007-12-11 Thread Trustin Lee
Hi folks, Someone reported a very interesting use case for MINA. The user was using MINA to implement Log4J Appender. He is also using Log4J as his logging framework via SLF4J. This is a kind of cyclic dependency, and there's much more behind that - a dead lock. It just sounds weird that this

Re: getMessageTypes in MessageEncoder

2007-12-11 Thread mat
Hi Trustin I read the source code(1.1.6) ProtocolEncoderImplhttp://mina.apache.org/report/1.1/xref/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.html. 1)SetClass? messageTypes = encoder.getMessageTypes(); is used to get the message of concrete encoder class. 2)in encode

Packet loss Issue

2007-12-11 Thread AmalRaj P
In my project I am using MINA framework for notification, with multiple clients in place I faced packet loss issues. Then I planned to setup a sample environment with a server and three clients connected to it. Server: Will publish numbers generated in loop to all clients

Re: getMessageTypes in MessageEncoder

2007-12-11 Thread Trustin Lee
On Dec 11, 2007 10:59 PM, mat [EMAIL PROTECTED] wrote: Hi Trustin I read the source code(1.1.6) ProtocolEncoderImplhttp://mina.apache.org/report/1.1/xref/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.html. 1)SetClass? messageTypes = encoder.getMessageTypes(); is used to

Re: Many message decoder/encoder

2007-12-11 Thread mat
I confirmed this. On Dec 9, 2007 6:41 PM, mat [EMAIL PROTECTED] wrote: Actually I am not very clear about how Encoder works. *static* { Set types = *new* HashSet(); types.add(ResultMessage.*class*); --Decide if this encoder gets invoke? TYPES =

Re: Using MINA in a Log4J Appender

2007-12-11 Thread Trustin Lee
On Dec 11, 2007 11:35 PM, Maarten Bosteels [EMAIL PROTECTED] wrote: Very interesting because I have also been working on a MINA based appender ! I haven't done extensive testing yet, and haven't run into that problem yet. probably because the MINA code was not emitting logging events

Re: [jira] Issue Comment Edited: (DIRMINA-494) SSL Filter IllegalStateException with mutual auth and persist session

2007-12-11 Thread Jeroen Brattinga
Take a look at this tutorial: http://mina.apache.org/tutorial-on-protocolcodecfilter.html Oh, and try to give your question a better description in the subject of your e-mail next time! Jeroen Brattinga On Tue, 2007-12-11 at 20:47 +0800, Michael Qi wrote: Hello, I am using mina and try

Where can i download mina 2.x core

2007-12-11 Thread Ashish Sharma
Hi A real novice question, but download section on website only mentions 1.xbuilds. From where can I download 2.x core, or do I have to build it from code? Thanks Ashish

Re: Where can i download mina 2.x core

2007-12-11 Thread Emmanuel Lecharny
Ashish Sharma wrote: Hi A real novice question, but download section on website only mentions 1.xbuilds. From where can I download 2.x core, or do I have to build it from code? Thanks Ashish Hi, the snapshots are available here :

Revisiting logging in MINA 2.0

2007-12-11 Thread David M. Lloyd
Hello fellow MINA users. I come before you today to hopefully change your collective minds on an issue that is causing me trouble, and is preventing two other big projects that I know of from adopting MINA for I/O. The issue is, of course, logging. The problem is simple: anyone who wants to use

RE: Revisiting logging in MINA 2.0

2007-12-11 Thread Scott Peters
The Jericho html parser project allows for multiple logging systems to be used; SLF4J Log4j being two of them. MINA could be modified to do the same sort of reflections lookup to determine which logging system is available. Just keep in mind someone may have to programmatically override the

Re: Revisiting logging in MINA 2.0

2007-12-11 Thread David M. Lloyd
On Tue, 11 Dec 2007 11:12:05 -0800 Scott Peters [EMAIL PROTECTED] wrote: The Jericho html parser project allows for multiple logging systems to be used; SLF4J Log4j being two of them. MINA could be modified to do the same sort of reflections lookup to determine which logging system is

CumulativeProtocolDecoder and UDP

2007-12-11 Thread Frederic Soulier
Hi I have an issue with Datagrams and the CumulativeProtocolDecoder which doesn't seem to cumulate! (working just fine with TCP). I have a Decoder extending CumulativeProtocolDecoder. protected boolean doDecode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out) throws

Re: messageSent on DemuxingIoHandler

2007-12-11 Thread Frédéric Brégier
Hi Trustin, I've made more change to MessageHandler and DemuxingIoHandler to fix the API design issue you raised. Please take a look at the following change log. The code will explain everything: http://svn.apache.org/viewvc?view=revrevision=603158 I understand again more clearly after

Re: Many sockets over single socket

2007-12-11 Thread oscarcs
Each child connect to the father on the same port, but the problem isn't in the father as the server, the problem is in the father as a client to the grandfather. Then i must decide use one socket for each child to send the data received from them to the grandfather and reuse the protocol logic,

[jira] Commented: (DIRMINA-494) SSL Filter IllegalStateException with mutual auth and persist session

2007-12-11 Thread janardhanan vembunarayanan (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550784 ] janardhanan vembunarayanan commented on DIRMINA-494: I upgraded just the ssl alone to Mina

[jira] Commented: (DIRMINA-494) SSL Filter IllegalStateException with mutual auth and persist session

2007-12-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550786 ] Trustin Lee commented on DIRMINA-494: - I have not seen such an exception message. If it's reproduceable by

HttpResponseEncoder and streaming data

2007-12-11 Thread Tuure Laurinolli
Good morning, Currently HttpResponseEncoder only seems to support HttpResponses that contain all the data that is going to be in the response. This clearly does not work for streaming data. I needed immediate support for streaming data, so I added a ChunkedHttpResponseEncoder that supports

[jira] Updated: (DIRMINA-495) IoConnector needs a way to store information into the IoSession before the IoHandler gets ahold of it

2007-12-11 Thread David M. Lloyd (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David M. Lloyd updated DIRMINA-495: --- Attachment: IoConnector.patch A patch that adds variants of IoConnector.connect() that

[jira] Created: (DIRMINA-496) AsyncHttpClient creates new NioSocketConnector

2007-12-11 Thread Tuure Laurinolli (JIRA)
AsyncHttpClient creates new NioSocketConnector -- Key: DIRMINA-496 URL: https://issues.apache.org/jira/browse/DIRMINA-496 Project: MINA Issue Type: Improvement Components: Protocol -

[jira] Updated: (DIRMINA-495) IoConnector needs a way to store information into the IoSession before the IoHandler gets ahold of it

2007-12-11 Thread David M. Lloyd (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David M. Lloyd updated DIRMINA-495: --- Attachment: IoConnector.patch This is a better version. It accepts Map?, ? rather than

[jira] Updated: (DIRMINA-495) IoConnector needs a way to store information into the IoSession before the IoHandler gets ahold of it

2007-12-11 Thread David M. Lloyd (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David M. Lloyd updated DIRMINA-495: --- Attachment: (was: IoConnector.patch) IoConnector needs a way to store information into

Re: Revisiting logging in MINA 2.0

2007-12-11 Thread Cameron Taggart
But why? JDK logging is always available. It's the responsibility of any good logging framework that has existed since 2001 to install a JDK LogManager in my opinion. Do you know of a LogManager that can be used for slf4j? I asked about one on their mailing list last May. It is a missing

[jira] Commented: (DIRMINA-495) IoConnector needs a way to store information into the IoSession before the IoHandler gets ahold of it

2007-12-11 Thread Mike Heath (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550842 ] Mike Heath commented on DIRMINA-495: I've taken an initial stab at this issue too and have a patch at

Re: Revisiting logging in MINA 2.0

2007-12-11 Thread David M. Lloyd
On Tue, 11 Dec 2007 21:25:14 -0800 Cameron Taggart [EMAIL PROTECTED] wrote: But why? JDK logging is always available. It's the responsibility of any good logging framework that has existed since 2001 to install a JDK LogManager in my opinion. Do you know of a LogManager that can be