You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Alexander Christian <al...@root1.de> on 2012/01/25 19:43:59 UTC
Mina with Java AIO
Hi there,
is there any plan/roadmap to support Java AIO, which comes with Java7?!
br,
Alex
Re: Mina with Java AIO
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
On Jan 26, 2012, at 3:14 AM, Alex Karasulu wrote:
> On Thu, Jan 26, 2012 at 5:02 AM, Chad Beaulac <ca...@gmail.com> wrote:
>
>> Punt on Java 6 and just goto Java 7 with Mina 3?
>>
>>
> +1 with that ... would fix the multicast impediments we have.
Anyone know how well JDK7 works with Mac OS X?
Regards,
Alan
Re: Mina with Java AIO
Posted by Alexander Christian <al...@root1.de>.
I played a bit with AIO.... It's nice, but not yet well documented. I
wrote a small&primitive echo-server to get familiar with the new
technique. See attached files.
Will now try to adapt this to a new AioSocketAcceptor +
AioSocketConnector. This will take some time ... (is there a kind of
"how to add new transports to MINA" documentation?)
If this is done&works, MINA team can check how to integrate/adaot to
MINA 2.x and 3.x
br,
Alex
Re: Mina with Java AIO
Posted by Alex Karasulu <ak...@apache.org>.
On Thu, Jan 26, 2012 at 5:02 AM, Chad Beaulac <ca...@gmail.com> wrote:
> Punt on Java 6 and just goto Java 7 with Mina 3?
>
>
+1 with that ... would fix the multicast impediments we have.
--
Best Regards,
-- Alex
Re: Mina with Java AIO
Posted by Emmanuel Lécharny <el...@apache.org>.
On 1/26/12 9:39 AM, Alexander Christian wrote:
> On Thu, 26 Jan 2012 09:12:59 +0100, Emmanuel Lecharny wrote:
>> On 1/26/12 4:02 AM, Chad Beaulac wrote:
>>> Punt on Java 6 and just goto Java 7 with Mina 3?
>>
>> That could be an option, but I'm afraid that Java 6 will be around
>> for a few years before Java 7 become the main version in use.
>>
>> I'd rather think about a solution that detect which Java version is
>> in use, and if it's Java 7, then allow AIO to be used.
>
> Wouldn't it be possible to provide the AIO Support as a additional
> library (for mina 2.x)?
I'm a bit reluctant to make any big change in MINA 2. The code base is
really crippled, and changing anything may make the whole stuff to crawl
down...
>
> I mean: NIO is provided with the NioSocketAcceptor etc. and is
> included in the mina lib.
> Why not create AioSocketAcceptor-class stuff and provide it as a
> separate library, which has to be used with mina 2.x.
>
> So mina can be compiled with java6 sdk and the Aio-Addon-Lib with java7?!
We have to check what could be the impact of such a modification on the
current code base (MINA 3). I'd like MINA 3 to be usable on Java 6 and
Java 7. Not sure it's an option though...
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Mina with Java AIO
Posted by Emmanuel Lecharny <el...@gmail.com>.
On 1/26/12 4:02 AM, Chad Beaulac wrote:
> Punt on Java 6 and just goto Java 7 with Mina 3?
That could be an option, but I'm afraid that Java 6 will be around for a
few years before Java 7 become the main version in use.
I'd rather think about a solution that detect which Java version is in
use, and if it's Java 7, then allow AIO to be used.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Mina with Java AIO
Posted by Chad Beaulac <ca...@gmail.com>.
Punt on Java 6 and just goto Java 7 with Mina 3?
Chad
Sent from my iPad
On Jan 25, 2012, at 1:59 PM, Emmanuel Lecharny <el...@gmail.com> wrote:
> On 1/25/12 7:43 PM, Alexander Christian wrote:
>> Hi there,
>>
>> is there any plan/roadmap to support Java AIO, which comes with Java7?!
>
> We have to support it at a point, as Java 6 EOL is for june this year. Now, the point is to find the best way to do this still keeping the code base Java 6 compatible.
>
> Any idea would be very welcome here !
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
Re: Mina with Java AIO
Posted by Alexander Christian <al...@root1.de>.
Am 25.01.2012 19:59, schrieb Emmanuel Lecharny:
> On 1/25/12 7:43 PM, Alexander Christian wrote:
>> Hi there,
>>
>> is there any plan/roadmap to support Java AIO, which comes with Java7?!
>
> We have to support it at a point, as Java 6 EOL is for june this year.
> Now, the point is to find the best way to do this still keeping the
> code base Java 6 compatible.
>
> Any idea would be very welcome here !
>
>
I did not have a detailed look into AIO yet. Sorry. I will try to find
some time to get a bit familiar with it.
Maybe I then can get a first overview or idea how this would fit with MINA.
- Alex
Re: Mina with Java AIO
Posted by Emmanuel Lecharny <el...@gmail.com>.
On 1/25/12 7:43 PM, Alexander Christian wrote:
> Hi there,
>
> is there any plan/roadmap to support Java AIO, which comes with Java7?!
We have to support it at a point, as Java 6 EOL is for june this year.
Now, the point is to find the best way to do this still keeping the code
base Java 6 compatible.
Any idea would be very welcome here !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com