MINA 3.0 DEPRECATED

2019-05-24 Thread Jonathan Valliere
Hello MINA developers & users, I'm sure your inboxes have been flooded with emails from JIRA regarding issues being closed. Emmanuel and I have decided to and are beginning the process of deprecating the 3.0 branch. This means that support for the 3.0 branch has officially ended. All

[jira] [Resolved] (DIRMINA-951) Add Getting started Page for MINA 3.0

2019-05-24 Thread Jonathan Valliere (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Valliere resolved DIRMINA-951. --- Resolution: Abandoned > Add Getting started Page for MINA

[jira] [Updated] (DIRMINA-951) Add Getting started Page for MINA 3.0

2014-09-05 Thread Emmanuel Lecharny (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRMINA-951: -- Fix Version/s: 3.0.0-trunk Add Getting started Page for MINA 3.0

Status of DIRMINA-934 and Mina 3.0

2014-03-10 Thread Mondain
Is https://issues.apache.org/jira/browse/DIRMINA-934 dead or just forgotten? I'm still using a patched version in Red5 and would love to see it committed. Lastly, whats the current status of a 3.0 release? I'd like to get started porting the our I/O code to work with it. Regards, Paul --

Re: Adding Monitoring to MINA 3.0

2013-07-26 Thread Jeff MAURY
+1 for JMX On Thu, Jul 25, 2013 at 6:03 PM, Julien Vermillard jvermill...@gmail.comwrote: On Thu, Jul 25, 2013 at 5:59 PM, Ashish paliwalash...@gmail.com wrote: On Thu, Jul 25, 2013 at 9:24 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/25/13 5:24 PM, Ashish a écrit : Folks,

Adding Monitoring to MINA 3.0

2013-07-25 Thread Ashish
Folks, Since we have M1 release, we can think about adding Monitoring support to MINA. Yammer's Metrics package is quite widely used for this. http://metrics.codahale.com/ I do not have a concrete idea on how to go about putting monitoring in place. It would be worth discussing about it. We

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Julien Vermillard
nice idea, would like to see a metrics module providing IoFilter using metrics.codahale. -- Julien Vermillard http://people.apache.org/~jvermillard/ On Thu, Jul 25, 2013 at 5:24 PM, Ashish paliwalash...@gmail.com wrote: Folks, Since we have M1 release, we can think about adding

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Edouard De Oliveira
25 juillet 2013 17h24 Objet : Adding Monitoring to MINA 3.0 Folks, Since we have M1 release, we can think about adding Monitoring support to MINA. Yammer's Metrics package is quite widely used for this. http://metrics.codahale.com/ I do not have a concrete idea on how to go about putting

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Ashish
tests So big +1 for your idea Ashish Cordialement, Regards, -Edouard De Oliveira- De : Ashish paliwalash...@gmail.com À : dev@mina.apache.org Envoyé le : Jeudi 25 juillet 2013 17h24 Objet : Adding Monitoring to MINA 3.0 Folks, Since we have M1

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Emmanuel Lécharny
Le 7/25/13 5:24 PM, Ashish a écrit : Folks, Since we have M1 release, we can think about adding Monitoring support to MINA. Yammer's Metrics package is quite widely used for this. http://metrics.codahale.com/ I do not have a concrete idea on how to go about putting monitoring in place.

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Ashish
On Thu, Jul 25, 2013 at 9:24 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 7/25/13 5:24 PM, Ashish a écrit : Folks, Since we have M1 release, we can think about adding Monitoring support to MINA. Yammer's Metrics package is quite widely used for this.

Re: Adding Monitoring to MINA 3.0

2013-07-25 Thread Julien Vermillard
On Thu, Jul 25, 2013 at 5:59 PM, Ashish paliwalash...@gmail.com wrote: On Thu, Jul 25, 2013 at 9:24 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 7/25/13 5:24 PM, Ashish a écrit : Folks, Since we have M1 release, we can think about adding Monitoring support to MINA. Yammer's

[jira] [Updated] (DIRMINA-951) Add Getting started Page for MINA 3.0

2013-07-22 Thread Ashish Paliwal (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashish Paliwal updated DIRMINA-951: --- Summary: Add Getting started Page for MINA 3.0 (was: Add Getting started for MINA 3.0

[jira] [Created] (DIRMINA-951) Add Getting started for MINA 3.0

2013-07-22 Thread Ashish Paliwal (JIRA)
Ashish Paliwal created DIRMINA-951: -- Summary: Add Getting started for MINA 3.0 Key: DIRMINA-951 URL: https://issues.apache.org/jira/browse/DIRMINA-951 Project: MINA Issue Type: Task

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Emmanuel Lécharny
Le 7/16/13 2:34 AM, sebb a écrit : On 29 June 2013 21:41, Emmanuel Lécharny elecha...@gmail.com wrote: Le 6/29/13 7:35 PM, Julien Vermillard a écrit : I think having the codec module java 6 compatible would help to use it with MINA2 or other framework. WDYT ? I don't mind if it's JAVA 6

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Emmanuel Lécharny
Le 7/16/13 2:41 AM, sebb a écrit : On 21 May 2013 10:02, Steve Ulrich steve.ulr...@proemion.com wrote: 2 Reasons for 7.0: 1) When MINA 3 is released, Java 8 is near or already released 2) Developers who don't want to upgrade to Java 7 because of the (testing, developing, whatever) effort

RE: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Steve Ulrich
sebb [mailto:seb...@gmail.com] wrote: On 21 May 2013 10:02, Steve Ulrich steve.ulr...@proemion.com wrote: 2 Reasons for 7.0: 1) When MINA 3 is released, Java 8 is near or already released 2) Developers who don't want to upgrade to Java 7 because of the (testing, developing, whatever)

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Emmanuel Lécharny
Le 7/16/13 10:34 AM, Steve Ulrich a écrit : sebb [mailto:seb...@gmail.com] wrote: On 21 May 2013 10:02, Steve Ulrich steve.ulr...@proemion.com wrote: 2 Reasons for 7.0: 1) When MINA 3 is released, Java 8 is near or already released 2) Developers who don't want to upgrade to Java 7 because of

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread sebb
On 16 July 2013 09:12, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/16/13 2:41 AM, sebb a écrit : On 21 May 2013 10:02, Steve Ulrich steve.ulr...@proemion.com wrote: 2 Reasons for 7.0: 1) When MINA 3 is released, Java 8 is near or already released 2) Developers who don't want to upgrade

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Emmanuel Lécharny
Le 7/16/13 12:10 PM, sebb a écrit : I don't think that's generally true. If MINA is part of a larger system, then updating Java as well as MINA is a lot more work and testing than just updating MINA. Especially if the system is installed on multiple nodes which may have different hardware

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread sebb
On 16 July 2013 14:07, Emmanuel Lécharny elecha...@gmail.com wrote: Le 7/16/13 12:10 PM, sebb a écrit : I don't think that's generally true. If MINA is part of a larger system, then updating Java as well as MINA is a lot more work and testing than just updating MINA. Especially if the

Re: MINA 3.0 JDK7+ only ?

2013-07-16 Thread Emmanuel Lécharny
Le 7/16/13 6:57 PM, sebb a écrit : In other words, Time is of the essence Well yes, but that has little to do with whether to move to Java 6 or Java 7. In our case, it does. We aren't enough and we have not a lot of work time to dedicate to support for older versions of java for all the MINA

Re: MINA 3.0 JDK7+ only ?

2013-07-15 Thread sebb
On 29 June 2013 21:41, Emmanuel Lécharny elecha...@gmail.com wrote: Le 6/29/13 7:35 PM, Julien Vermillard a écrit : I think having the codec module java 6 compatible would help to use it with MINA2 or other framework. WDYT ? I don't mind if it's JAVA 6 compatble, as soon as we still can

Re: MINA 3.0 JDK7+ only ?

2013-07-15 Thread sebb
[mailto:raphael.barazzu...@gmail.com] wrote: IMHO, developers who will do the jump to MINA 3.0, might also want to benefit of the cutting-edge features of JDK7. +1 for MINA 3.0 on JDK7 -- PROEMION GmbH Steve Ulrich

Re: MINA 3.0 JDK7+ only ?

2013-06-29 Thread Julien Vermillard
the jump to MINA 3.0, might also want to benefit of the cutting-edge features of JDK7. +1 for MINA 3.0 on JDK7 -- PROEMION GmbH Steve Ulrich IT Development (IT/DEV) Donaustrasse 14 D-36043 Fulda, Germany Phone +49 (0

Re: MINA 3.0 JDK7+ only ?

2013-06-29 Thread Emmanuel Lécharny
Le 6/29/13 7:35 PM, Julien Vermillard a écrit : I think having the codec module java 6 compatible would help to use it with MINA2 or other framework. WDYT ? I don't mind if it's JAVA 6 compatble, as soon as we still can benefit from Java 7 features in the core. Also be sure to add a warning in

Re: MINA 3.0 Thrift and Protobuf support

2013-06-11 Thread Julien Vermillard
A couple of examples for those modules would be a nice addition. Raphael you think you can provide that ? julien -- Julien Vermillard http://people.apache.org/~jvermillard/ On Thu, May 9, 2013 at 7:58 PM, Jeff MAURY jeffma...@gmail.com wrote: My +1 Jeff — Sent from Mailbox for iPhone

Re: MINA 3.0 Thrift and Protobuf support

2013-06-11 Thread Raphaël Barazzutti
Hi Julien, You're right it'd a nice addition. I've some fixes to commit and then I can focus on providing examples. Regards, Raphaël On Tue, Jun 11, 2013 at 3:33 PM, Julien Vermillard jvermill...@gmail.comwrote: A couple of examples for those modules would be a nice addition. Raphael

Re: MINA 3.0 JDK7+ only ?

2013-05-21 Thread Arnaud bourree
+1 for MINA 3.0 on JDK7 2013/5/20 Raphaël Barazzutti raphael.barazzu...@gmail.com IMHO, developers who will do the jump to MINA 3.0, might also want to benefit of the cutting-edge features of JDK7. +1 for MINA 3.0 on JDK7 On Mon, May 20, 2013 at 9:39 AM, Julien Vermillard jvermill

RE: MINA 3.0 JDK7+ only ?

2013-05-21 Thread Steve Ulrich
] wrote: IMHO, developers who will do the jump to MINA 3.0, might also want to benefit of the cutting-edge features of JDK7. +1 for MINA 3.0 on JDK7 -- PROEMION GmbH Steve Ulrich IT Development (IT/DEV) Donaustrasse 14 D

MINA 3.0 JDK7+ only ?

2013-05-20 Thread Julien Vermillard
Hi ! Would it cause problems for having MINA 3 jdk7 only ? The rational is quite simple : multicast udp support is only in jdk7. I know a lot of people are still running jdk6 or event 5 :) that's why I ask. Julien

Re: MINA 3.0 JDK7+ only ?

2013-05-20 Thread Emmanuel Lécharny
Le 5/20/13 8:36 AM, Julien Vermillard a écrit : Hi ! Would it cause problems for having MINA 3 jdk7 only ? The rational is quite simple : multicast udp support is only in jdk7. I know a lot of people are still running jdk6 or event 5 :) that's why I ask. Java 6 is EOL since last year.

Re: MINA 3.0 JDK7+ only ?

2013-05-20 Thread Julien Vermillard
The idea of being 7 only is to avoid that ;) On Mon, May 20, 2013 at 9:15 AM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 5/20/13 8:36 AM, Julien Vermillard a écrit : Hi ! Would it cause problems for having MINA 3 jdk7 only ? The rational is quite simple : multicast udp support is only

Re: MINA 3.0 JDK7+ only ?

2013-05-20 Thread Raphaël Barazzutti
IMHO, developers who will do the jump to MINA 3.0, might also want to benefit of the cutting-edge features of JDK7. +1 for MINA 3.0 on JDK7 On Mon, May 20, 2013 at 9:39 AM, Julien Vermillard jvermill...@gmail.comwrote: The idea of being 7 only is to avoid that ;) On Mon, May 20, 2013 at 9

Re: MINA 3.0 Thrift and Protobuf support

2013-05-09 Thread Julien Vermillard
raphael.barazzu...@gmail.com wrote: Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide serialization facilities like Apache Thrift and Google Protobuf transport. According to that I decide to propose

Re: MINA 3.0 Thrift and Protobuf support

2013-05-09 Thread Emmanuel Lécharny
Le 5/9/13 5:17 PM, Julien Vermillard a écrit : What do you think of having the two modules (thrift and protobuff) dicrectly at the root of the project and not in a serialization intermediate module ? That would reduce pom hierarchy/maintenance. My +1 -- Regards, Cordialement, Emmanuel

Re: MINA 3.0 Thrift and Protobuf support

2013-05-09 Thread Jeff MAURY
My +1 Jeff — Sent from Mailbox for iPhone On Thu, May 9, 2013 at 7:48 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 5/9/13 5:17 PM, Julien Vermillard a écrit : What do you think of having the two modules (thrift and protobuff) dicrectly at the root of the project and not in a

Re: MINA 3.0 Thrift and Protobuf support

2013-05-07 Thread Julien Vermillard
raphael.barazzu...@gmail.com wrote: Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide serialization facilities like Apache Thrift and Google Protobuf transport. According to that I decide

Re: MINA 3.0 Thrift and Protobuf support

2013-05-05 Thread Julien Vermillard
serialization codec bothering everybody on android ! Julien On Sun, May 5, 2013 at 1:31 AM, Raphaël Barazzutti raphael.barazzu...@gmail.com wrote: Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide

Re: MINA 3.0 Thrift and Protobuf support

2013-05-05 Thread Emmanuel Lécharny
Le 5/5/13 10:44 AM, Julien Vermillard a écrit : Hi Raphäel Looks neat, I have definitively a use case for that : RPC. Perhaps we should have two maven module : one for thrift, one for protobuf ? This would avoid people to have thrift dependency when they use protobuff (and vice versa).

Re: MINA 3.0 Thrift and Protobuf support

2013-05-05 Thread Raphaël Barazzutti
Hi Ashish, You're right, to decode fragmented packet I need to keep track of the data before the message is complete. With MINA 2.0, I'm using a CumulativeProtocolDecoder to handle these issues. I'll fix this using a context in my decoders, I agree with you that MINA 3.0 might need something

Re: MINA 3.0 Thrift and Protobuf support

2013-05-05 Thread Raphaël Barazzutti
bothering everybody on android ! Julien On Sun, May 5, 2013 at 1:31 AM, Raphaël Barazzutti raphael.barazzu...@gmail.com wrote: Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide serialization facilities

MINA 3.0 Thrift and Protobuf support

2013-05-04 Thread Raphaël Barazzutti
Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide serialization facilities like Apache Thrift and Google Protobuf transport. According to that I decide to propose the following code to be merged with the main

Re: MINA 3.0 Thrift and Protobuf support

2013-05-04 Thread Emmanuel Lécharny
Le 5/5/13 1:31 AM, Raphaël Barazzutti a écrit : Hi MINA-developers! Hi Raphaël ! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could provide serialization facilities like Apache Thrift and Google Protobuf transport. This is most

Re: MINA 3.0 Thrift and Protobuf support

2013-05-04 Thread Ashish
decoder to decode the messages. My implementation is still in initial stage. On Sun, May 5, 2013 at 5:01 AM, Raphaël Barazzutti raphael.barazzu...@gmail.com wrote: Hi MINA-developers! Using extensively MINA 2.0 at my work, I’d like to contribute to the next MINA version. IMHO, MINA 3.0 could

Re: [MINA 3.0] SelectorListener implementation

2012-11-17 Thread Emmanuel Lécharny
Le 11/17/12 7:42 AM, Julien Vermillard a écrit : well I strongly disagreeing here :) The selector listener and the selector loop should be seen as a wrapper on top of nio to make things easier. I don't disagree here. The event can happen at the same moment so we need to provide them as is

[MINA 3.0] SelectorListener implementation

2012-11-16 Thread Emmanuel Lécharny
Hi guys, I looked at the SelectorListner interface and its implementation. Here is the hierarchy of classes implementing this interface : (SelectorListener) o | +-- [NioTcpServer] | +-- [NioUdpServer] | +-- [NioTcpSesession] The interface

Re: [MINA 3.0] SelectorListener implementation

2012-11-16 Thread Julien Vermillard
well I strongly disagreeing here :) The selector listener and the selector loop should be seen as a wrapper on top of nio to make things easier. The event can happen at the same moment so we need to provide them as is and not to choose the order to propagate them. It's up to the listener to

[MINA 3.0] fusion of IoHandler and IoServiceListener

2012-11-13 Thread Julien Vermillard
Hi, I'm reintroducing IoHandler in mina 3. The idea is to have one Iohandler per IoService : {snip} final NioTcpServer server = new NioTcpServer(); // create the fitler chain for this service server.setFilters(securityFilter,codec,logging); server.setIoHanlder( new DefaultIoHandler() { //

Re: [MINA 3.0] fusion of IoHandler and IoServiceListener

2012-11-13 Thread Ashish
+1 for IoHandler Just thinking about the Use Cases for IoServiceListeners. If we have it, what could we achieve by having it. One thing is could have Event listeners which can do custom functionality on these events. Like if serviceInactive event, might want to close some resources, and acquire

Re: [MINA 3.0] fusion of IoHandler and IoServiceListener

2012-11-13 Thread Emmanuel Lécharny
Sorry for the delayed +... Your commit just reminded me that I had to say I agreed on your suggestion. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Ashish
We did. Julien did committed some code. Lets see if we those changes. On Thu, Nov 8, 2012 at 2:41 PM, Emmanuel Lécharny elecha...@gmail.comwrote: Le 11/8/12 10:01 AM, Ashish a écrit : Does anyone know why our Sonar profile hasn't been updated since Sept 30th 2012?

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Julien Vermillard
I think we changed the SVN url and added a /mina/ before the /trunk. jenkins build suffered that syndrome and automatically unactivated On Thu, Nov 8, 2012 at 10:39 AM, Ashish paliwalash...@gmail.com wrote: We did. Julien did committed some code. Lets see if we those changes. On Thu, Nov

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Emmanuel Lécharny
Le 11/8/12 12:20 PM, Julien Vermillard a écrit : I think we changed the SVN url and added a /mina/ before the /trunk. I have created a JIRA in order to have MINA being updated, and the other subprojects to be added : https://issues.apache.org/jira/browse/INFRA-5495 -- Regards, Cordialement,

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Emmanuel Lécharny
It's back ! https://analysis.apache.org/drilldown/violations/24437 Le 11/8/12 12:20 PM, Julien Vermillard a écrit : I think we changed the SVN url and added a /mina/ before the /trunk. jenkins build suffered that syndrome and automatically unactivated On Thu, Nov 8, 2012 at 10:39 AM,

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Ashish
It's 2.0.8 version.. The link I sent was different (it was for trunk). I think it might have got broken when we changed our directory structure. Anyways not priority, it's definitely helpful, but not a blocker :) On Thu, Nov 8, 2012 at 7:02 PM, Emmanuel Lécharny elecha...@gmail.comwrote: It's

Re: Mina 3.0 Sonar Profile

2012-11-08 Thread Emmanuel Lécharny
MINA 2.0 and MINA 3.0. It will be done later this afternon. Right now, the 2.0 sonar instance has been fixed and reflects the current state. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com

[MINA 3.0] Thoughts on TCP server

2012-10-01 Thread Emmanuel Lécharny
Hi guys, some thoughts about the TCP server. feel free to comment. TCP server MINA 3 - As we are reworking the server part of MINA, we can review the current architecture. There are a few problems we can address. 1) One vs Many selectors In MINA 2, we do have at least 2

Re: [MINA 3.0] Thoughts on TCP server

2012-10-01 Thread Chad Beaulac
Hi Emmanuel, 1) One Reactor is preferable. Easier to manage, easier to code, meets all the requirements. 2) Event Processing: Use non-blocking sockets. Accept, connect, read and write won't hang each other up. I have some code that does this. I'll get it and attach to a subsequent email. It

Re: MINA 3.0 Acceptor/Processor

2012-06-02 Thread Julien Vermillard
On Fri, Jun 1, 2012 at 2:28 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 5/31/12 8:55 PM, Julien Vermillard a écrit : Hi, In mina 2 the event loops are composed of Acceptor/Connector (for accepting/connecting TCP sessions) and IoProcessor for handling session read and write events.

Re: MINA 3.0 Acceptor/Processor

2012-06-02 Thread Emmanuel Lécharny
Le 6/2/12 4:38 PM, Julien Vermillard a écrit : On Fri, Jun 1, 2012 at 2:28 PM, Emmanuel Lécharnyelecha...@gmail.com wrote: Le 5/31/12 8:55 PM, Julien Vermillard a écrit : Hi, In mina 2 the event loops are composed of Acceptor/Connector (for accepting/connecting TCP sessions) and IoProcessor

Re: MINA 3.0 Acceptor/Processor

2012-06-01 Thread Emmanuel Lécharny
Le 5/31/12 8:55 PM, Julien Vermillard a écrit : Hi, In mina 2 the event loops are composed of Acceptor/Connector (for accepting/connecting TCP sessions) and IoProcessor for handling session read and write events. For each service you need at least one Acceptor/connector and one IoProcessor, so

MINA 3.0 Acceptor/Processor

2012-05-31 Thread Julien Vermillard
Hi, In mina 2 the event loops are composed of Acceptor/Connector (for accepting/connecting TCP sessions) and IoProcessor for handling session read and write events. For each service you need at least one Acceptor/connector and one IoProcessor, so at least two threads. For a simple TCP base

Re: MINA 3.0 Acceptor/Processor

2012-05-31 Thread Chad Beaulac
Julien, I agree. A single thread with one Selector can be optimized for non-blocking I/O to handle a large number of streams simultaneously. -Chad On May 31, 2012, at 2:55 PM, Julien Vermillard wrote: Hi, In mina 2 the event loops are composed of Acceptor/Connector (for

Re: [MINA 3.0] Idle management

2012-02-16 Thread Julien Vermillard
On Tue, Jan 24, 2012 at 1:44 PM, Emmanuel Lecharny elecha...@gmail.com wrote: On 1/24/12 1:32 PM, Christian Schwarz wrote: Hello, will it be possible to disable the Idle detection when i don't need it? We should make it optional, absolutely. This should be a parameter of the IoProcessor

[MINA 3.0] Idle management

2012-01-24 Thread Julien Vermillard
Hi, Actually in MINA1/2 the idle is computed each second by scanning *all* session of a service. If you have a large number of session, it could create some student latency in the selector loop. For trying to keep the scanning a bit more lightweight, I was thinking about another solution : For

Re: [MINA 3.0] Idle management

2012-01-24 Thread Emmanuel Lecharny
On 1/24/12 12:53 PM, Julien Vermillard wrote: Hi, Hi, Actually in MINA1/2 the idle is computed each second by scanning *all* session of a service. If you have a large number of session, it could create some student latency in the selector loop. yes, not good... For trying to keep the

Re: [MINA 3.0] Idle management

2012-01-24 Thread Christian Schwarz
Hello, will it be possible to disable the Idle detection when i don't need it? In MINA 2 we have 10 Idle-Checker-Threads if we implement 10 different Protocols ( one IOService per Protocol). If we dont need them, they are a wasted resource. So it would be nice to disable the Idle detection.

Re: [MINA 3.0] Idle management

2012-01-24 Thread Emmanuel Lecharny
On 1/24/12 1:32 PM, Christian Schwarz wrote: Hello, will it be possible to disable the Idle detection when i don't need it? We should make it optional, absolutely. This should be a parameter of the IoProcessor (as an IoProcessor will handle more than one service). -- Regards,

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Chad Beaulac
On Mon, Jan 16, 2012 at 1:10 PM, Emmanuel Lecharny elecha...@gmail.comwrote: On 1/16/12 2:56 PM, Chad Beaulac wrote: Emmanuel, (all) I'm working on this Camel ticket: https://issues.apache.org/**jira/browse/CAMEL-2624https://issues.apache.org/jira/browse/CAMEL-2624 I finished the initial

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Emmanuel Lécharny
On 1/17/12 3:02 PM, Chad Beaulac wrote: On Mon, Jan 16, 2012 at 1:10 PM, Emmanuel Lecharnyelecha...@gmail.comwrote: On 1/16/12 2:56 PM, Chad Beaulac wrote: Emmanuel, (all) I'm working on this Camel ticket:

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Chad Beaulac
On Jan 17, 2012, at 9:32 AM, Emmanuel Lécharny elecha...@apache.org wrote: On 1/17/12 3:02 PM, Chad Beaulac wrote: On Mon, Jan 16, 2012 at 1:10 PM, Emmanuel Lecharnyelecha...@gmail.comwrote: On 1/16/12 2:56 PM, Chad Beaulac wrote: Emmanuel, (all) I'm working on this Camel ticket:

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Emmanuel Lecharny
IFAICT, on MINA 2, you should not have any issue. The loop where we write buffers into the channel is : ... final int maxWrittenBytes = session.getConfig().getMaxReadBufferSize() + (session.getConfig().getMaxReadBufferSize() 1); int writtenBytes = 0;

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Chad Beaulac
Ok. I'll test the throughput on it with the tests I have. Thanks Chad Sent from my iPad On Jan 17, 2012, at 11:33 AM, Emmanuel Lecharny elecha...@gmail.com wrote: IFAICT, on MINA 2, you should not have any issue. The loop where we write buffers into the channel is : ...

Re: [MINA 3.0] IoBuffer usage

2012-01-17 Thread Emmanuel Lecharny
On 1/18/12 2:57 AM, Chad Beaulac wrote: Ok. I'll test the throughput on it with the tests I have. Let me know if you have any isues with the throughput you obtain. Be sure to set the default read buffer size to the maximum size, AFAIR, it's set to 2048 bytes in MINA 2 (and can't be higher

Re: [MINA 3.0] IoBuffer usage

2012-01-16 Thread Chad Beaulac
Emmanuel, (all) I'm working on this Camel ticket: https://issues.apache.org/jira/browse/CAMEL-2624 I finished the initial cut of https://issues.apache.org/jira/browse/CAMEL-3471 to create a mina2 component in Camel. CAMEL-2624 adds the full async behavior for Mina2 endpoints in Camel. Would it

Re: [MINA 3.0] IoBuffer usage

2012-01-16 Thread Emmanuel Lecharny
On 1/16/12 2:56 PM, Chad Beaulac wrote: Emmanuel, (all) I'm working on this Camel ticket: https://issues.apache.org/jira/browse/CAMEL-2624 I finished the initial cut of https://issues.apache.org/jira/browse/CAMEL-3471 to create a mina2 component in Camel. CAMEL-2624 adds the full async

Re: Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Julien Vermillard
Hi, snipped a lot of the message :) So, do you mean that the underlying layer will not allow us to push say, 20M, without informing the session that it's full ? In other word, there is a limited size that can be pushed and we don't have to take care of this limit ourselves ? Sort of. If

Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Emmanuel Lécharny
On 12/4/11 2:34 PM, Chad Beaulac wrote: Hi Chad, Agreed :-) Do you have a Git repo setup for Mina3? I'll help you write some of it if you like. With unit tests, of course. ;-) http://git.apache.org/ This is a read only Git repos. Internally, we are -still- using SVN (but we are

Re: Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Chad Beaulac
Looks perfect except one thing. Don't allow clients to put WriteRequest's into the queue while you're draining it. If you allow other threads to enqueue more WriteRequest's, the algorithm is unbounded and you risk getting stuck writing for only one channel. I added a synchronized block below. On

Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Emmanuel Lecharny
On 12/5/11 2:39 PM, Chad Beaulac wrote: Looks perfect except one thing. Don't allow clients to put WriteRequest's into the queue while you're draining it. If you allow other threads to enqueue more WriteRequest's, the algorithm is unbounded and you risk getting stuck writing for only one

Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Chad Beaulac
Excellent. I like the counter in the write algorithm. Sent from my iPhone On Dec 5, 2011, at 8:50 AM, Emmanuel Lecharny elecha...@gmail.com wrote: On 12/5/11 2:39 PM, Chad Beaulac wrote: Looks perfect except one thing. Don't allow clients to put WriteRequest's into the queue while you're

Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Julien Vermillard
since it's a ConcurrentLinkedQueue it could be a perf killer to do a .size() from the oracle javadoc : Beware that, unlike in most collections, the size method is NOT a constant-time operation. Because of the asynchronous nature of these queues, determining the current number of elements requires

Re: [MINA 3.0] IoBuffer usage

2011-12-05 Thread Emmanuel Lecharny
On 12/5/11 3:50 PM, Julien Vermillard wrote: since it's a ConcurrentLinkedQueue it could be a perf killer to do a .size() from the oracle javadoc : Beware that, unlike in most collections, the size method is NOT a constant-time operation. Because of the asynchronous nature of these queues,

Fwd: Re: [MINA 3.0] IoBuffer usage

2011-12-04 Thread Emmanuel Lecharny
Posted on the wrong mailing list... Forwarding there. Hi Chad, On 12/4/11 1:25 AM, Chad Beaulac wrote: A single algorithm can handle large data pipes and provide extremely low latency for variable, small and large message sizes at the same time. AFAIU, it' snot because you use a big

Re: Re: [MINA 3.0] IoBuffer usage

2011-12-04 Thread Chad Beaulac
On Sun, Dec 4, 2011 at 8:04 AM, Emmanuel Lecharny elecha...@gmail.comwrote: Posted on the wrong mailing list... Forwarding there. Hi Chad, On 12/4/11 1:25 AM, Chad Beaulac wrote: A single algorithm can handle large data pipes and provide extremely low latency for variable, small

Re: [MINA 3.0] IoBuffer usage

2011-12-02 Thread Chad Beaulac
I think I'm not communicating my thoughts well enough. A single algorithm can handle large data pipes and provide extremely low latency for variable, small and large message sizes at the same time. On the Producer side: Application code should determine the block sizes that are pushed onto the

Re: [MINA 3.0] IoBuffer usage

2011-12-02 Thread Emmanuel Lécharny
On 12/2/11 2:02 PM, Chad Beaulac wrote: I think I'm not communicating my thoughts well enough. Well, I hope I have undesrtood what you said, at least :) A single algorithm can handle large data pipes and provide extremely low latency for variable, small and large message sizes at the same

[MINA 3.0] IoBuffer usage

2011-12-01 Thread Emmanuel Lecharny
Hi guys, yesterday, I committed some changes that make the NioSelectorProcessor to use the IoBuffer class instead of a singe buffer to store the incoming data. Here is the snippet of changed code : int readCount = 0; IoBuffer

Re: [MINA 3.0] IoBuffer usage

2011-12-01 Thread Chad Beaulac
Hi Emmanuel, A 1k ByteBuffer will be too small for large data pipes. Consider using 64k like you mentioned yesterday. Draining the channel before returning control to the program can be problematic. This thread can monopolize the CPU and other necessary processing could get neglected. The

Fwd: Re: [MINA 3.0] IoBuffer usage

2011-12-01 Thread Emmanuel Lécharny
Forwarded to the ML Quick note below. Sent from my iPhone On Dec 1, 2011, at 7:51 AM, Emmanuel Lécharnyelecha...@apache.org wrote: On 12/1/11 1:32 PM, Chad Beaulac wrote: Hi Emmanuel, A 1k ByteBuffer will be too small for large data pipes. Consider using 64k like you mentioned

Re: Fwd: Re: [MINA 3.0] IoBuffer usage

2011-12-01 Thread Emmanuel Lecharny
On 12/1/11 2:49 PM, Emmanuel Lécharny wrote: Forwarded to the ML Quick note below. Sent from my iPhone On Dec 1, 2011, at 7:51 AM, Emmanuel Lécharnyelecha...@apache.org wrote: On 12/1/11 1:32 PM, Chad Beaulac wrote: Hi Emmanuel, A 1k ByteBuffer will be too small for large data

Re: [MINA 3.0] IoBuffer usage

2011-12-01 Thread Emmanuel Lecharny
On 12/1/11 5:28 PM, Steve Ulrich wrote: Hi (quickly reading , reading everything-you-can-get might starve the application logic. We currently have some realtime stuff which must be transferred as quickly as possible, but it's just some bytes (Biggest messages are 1K, smallest about 10 bytes).

Re: [MINA 3.0] IoBuffer usage

2011-12-01 Thread Chad Beaulac
The reverse is true for the producer. Let's assume the writer/producer has a list of ByteBuffer. When the selector fires that you can write for the channel then: - write until there's nothing left to write, unregister for the write event, return to event processing - write until the the channel

[MINA 3.0] Codec filter

2011-10-04 Thread Emmanuel Lecharny
Hi guys, right now, Julien and I have experimented the MINA 3.0 branch writing a Http codec and a Ldap codec. So far, so good, for basic scenario it works well. Now, I'd like to know if it would be a good idea to move the ProtocolCodecFilter we have in MINA 2 to MINA 3? The rational would

Re: [MINA 3.0] Codec filter

2011-10-04 Thread Julien Vermillard
On Tue, Oct 4, 2011 at 9:29 AM, Emmanuel Lecharny elecha...@gmail.com wrote: Hi guys, right now, Julien and I have experimented the MINA 3.0 branch writing a Http codec and a Ldap codec. So far, so good, for basic scenario it works well. good to hear :) Now, I'd like to know if it would

[MINA 3.0] write future

2011-09-06 Thread Julien Vermillard
Hi ! actually in MINA 1.0 2..0 there is something implemented with an ugly hack : the future returned by session.write(..) and IoHandler#messageSent(..); The main problem is you usually write a pojo at the session level, and it's transformed into one or multiple bytebuffer by the chain of

Re: [MINA 3.0] write future

2011-09-06 Thread Emmanuel Lecharny
On 9/6/11 3:55 PM, Julien Vermillard wrote: Hi ! actually in MINA 1.0 2..0 there is something implemented with an ugly hack : the future returned by session.write(..) and IoHandler#messageSent(..); The main problem is you usually write a pojo at the session level, and it's transformed into

[MINA 3.0] ByteBuffer array

2011-09-06 Thread Emmanuel Lecharny
Hi guys, today, while checking for some old code, I discovered that we already have an implementation (done by Mark Webb 3 years ago) for a ByteBuffer array. It mimics the ByteArray interface, but behind the curtain, we have many ByteBuffers. This is what we should use in the chain, IMHO.

[MINA 3.0] Chains and other general consideration

2011-08-30 Thread Emmanuel Lecharny
Hi guys, we are having a lot of discussion about the way to process chains, FSM and other high level concerns. This is *really* interesting. Although, this is just part of the problem. Julien has already coded a rough semi-working soltuion using a very basic chain, with some HTTP protocol

  1   2   3   4   >