You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Julien Vermillard (JIRA)" <ji...@apache.org> on 2007/09/14 11:56:32 UTC

[jira] Created: (DIRMINA-438) Multicast support for MINA API

Multicast support for MINA API 
-------------------------------

                 Key: DIRMINA-438
                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
             Project: MINA
          Issue Type: New Feature
          Components: Core
            Reporter: Julien Vermillard
            Priority: Critical
             Fix For: 2.0.0-M1


For supporting multicast over UDP we need to change the MINA API for
Set the multicast Time to Live (TTL) for a multicast transmission.
Joining a multicast group for a given session.
Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696435#action_12696435 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

Need to check if tomcat-native guys can push us a version with the fix in the repo, could be convenient.
On the patch itself the AprDatagramAcceptor is a copy/paste of the SocketAcceptor, we need to find a way to have the classes sharing more code.


> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: AprDatagramAcceptor.java, AprDatagramConnector.java, diff.txt, diff_apr.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639048#action_12639048 ] 

breul edited comment on DIRMINA-438 at 10/13/08 6:51 AM:
---------------------------------------------------------------

Hey thanks! I didn't see the org.apache.mina.transport.socket.apr package in Eclipse, now I do. A quick overview suggests that extending AprSocketAcceptor using the class "Multiclass" from the jni library might lead to results. 
Otherwise I guess I will have to use the MulticastSocket provided by java.net to implement a new IoAcceptor, however after only a few hours on this project I still have no idea how APR, MINA, NIO and co. actually work, so I will fight my way through some code and look into it.

      was (Author: breul):
    Hey thanks! I didn't see the transport-apr package in Eclipse, now I do. A quick overview suggests that extending AprSocketAcceptor using the class "Multiclass" from the jni library might lead to results. 
Otherwise I guess I will have to use the MulticastSocket provided by java.net to implement a new IoAcceptor, however after only a few hours on this project I still have no idea how APR, MINA, NIO and co. actually work, so I will fight my way through some code and look into it.
  
> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531374 ] 

trustin edited comment on DIRMINA-438 at 9/30/07 12:21 PM:
---------------------------------------------------------------

For setting TTL, we could simply extend IoSessionConfig, or reuse writeTimeout property.

      was (Author: trustin):
    For setting TTL, we could simply extend IoSessionConfig.
  
> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639019#action_12639019 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

It seems as though this issue has not been touched since November 07. I have just started my MSc thesis and will be working on apache Directory and MINA among other things. My first task, so to speak, is to add multicast support to MINA. Has anyone been doing any work on this lately?

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRMINA-438:
--------------------------------------

    Fix Version/s: 3.0.0-M1

Postponed to 3.0

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675002#action_12675002 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

During extensive load tests against a server based on my AprDatagramAcceptor I noticed that after receiveing about 6 or 7 million messages, the OS would kill java due to lack of memory. I therefor suspect a memory leak either in my MINA code or else the underlying tomcat-jni or apr code.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien Vermillard reassigned DIRMINA-438:
-----------------------------------------

    Assignee: Julien Vermillard

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675007#action_12675007 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

you should open a separate issue for the mem-leak problem.

For windows multicast joining, the problem is probably deeper, in APR surely.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542120 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

My research was too shallow.  It's not that extremely simple.

1) It seems like a connected MulticastSocket doesn't make sense, so we will need only an IoAcceptor implementation for multicast socket, derived from DatagramAcceptor.
2) We already have session.write(message, destination), so there's nothing to change related with sending a message.
3) The parameter of IoAcceptor.joinGroup() and IoAcceptor.leaveGroup() should be abstracted as much as possible so it can work with various multicast frameworks needless to say ordinary multicast socket.

Consequently, we need to,

1) Define a SocketAddress that can abstract existing multicast group addresses.
2) Add IoAcceptor.join/leave Group() which throws UnsupportedOperationException by default.

Please let me know I am getting something wrong.  Any feed back from multicast expert is welcome!

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531374 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

For setting TTL, we could simply extend IoSessionConfig.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675003#action_12675003 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

prolly linked to APR than to multicast, same behavior in unicast ?

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675006#action_12675006 ] 

breul edited comment on DIRMINA-438 at 2/19/09 6:52 AM:
--------------------------------------------------------------

- currently only unicast is being used by said server.

- I will try to get some snapshots later, right now I just don't have the time.

- on a side note: i cannot get the AprDatagramAcceptor to join multicast groups under windows, although all calls to tomcat native and apr return APR_SUCCESS... the same code on the same machine booted to linux however works fine


      was (Author: breul):
    - currently only unicast is being used by said server.

- I will try to get some snapshots later, right now I just don't have the time.

- on a side not: i cannot get the AprDatagramAcceptor to join multicast groups under windows, although all calls to tomcat native and apr return APR_SUCCESS... the same code on the same machine booted to linux however works fine

  
> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien Vermillard updated DIRMINA-438:
--------------------------------------


I agree the API impact will be minimal, I think we can do it when I block some time for finishing APR support.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696103#action_12696103 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

hmm at first look, tomcat-apr 5.5.23.1 isn't in the mvn repository

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639048#action_12639048 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

Hey thanks! I didn't see the transport-apr package in Eclipse, now I do. A quick overview suggests that extending AprSocketAcceptor using the class "Multiclass" from the jni library might lead to results. 
Otherwise I guess I will have to use the MulticastSocket provided by java.net to implement a new IoAcceptor, however after only a few hours on this project I still have no idea how APR, MINA, NIO and co. actually work, so I will fight my way through some code and look into it.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542112 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

I researched a little bit about MulticastSocket and thought we could do like the following:

* Add IoSession.join/leaveGroup(SocketAddress) which throws UnsupportedOperationException for now.
* All other properties (timeToLive, interface, networkInterface and loopbackMode) could be added later, because they won't affect the core API at all.

WDYT?  If there's no objection, let me add joinGroup and leaveGroup and reschedule this issue.



> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542330 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

JGroups code:

http://javagroups.cvs.sourceforge.net/javagroups/JGroups/src/org/jgroups/protocols/UDP.java?revision=1.156&view=markup

It seems like IoAcceptor is enough. :)

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696439#action_12696439 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

Yeah, sorry about that. That's just the way I started: copy, paste, adjust. Thought I would have to make a lot more changes. Anyway, I was in a hurry and was happy once it worked for my main project (jSLP).

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: AprDatagramAcceptor.java, AprDatagramConnector.java, diff.txt, diff_apr.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee updated DIRMINA-438:
--------------------------------

    Priority: Minor  (was: Critical)

OK... To summarize the discussion (?) so far, it seems like this issue doesn't impact the core API but add some methods and classes and that's all.  Let me adjust the priority of this issue and reschedule it.  I think it's not mandatory to resolve this issue in 2.0.0-M1 for the current situation that we don't even have any working multicast transport.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Jan S. Rellermeyer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668848#action_12668848 ] 

Jan S. Rellermeyer commented on DIRMINA-438:
--------------------------------------------

Lorenz Breu has implemented a multicast support based on APR and Tomcat-Native. The patch follows. Currently, the patch depends on bug tomcat-native #46457 to be fixed. 

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639037#action_12639037 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

Hi,
Quick resume, two wayo to implements multicast : 
 - use NIO2, (jdk1.7) wich is supposed to support multicast
 - use APR transport which is half finished, but is supporting multicast
NIO actually lack support for multicast

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542120 ] 

trustin edited comment on DIRMINA-438 at 11/13/07 3:45 AM:
---------------------------------------------------------------

My research was too shallow.  It's not that extremely simple.

1) It seems like a connected MulticastSocket doesn't make sense, so we will need only an IoAcceptor implementation for multicast socket, derived from DatagramAcceptor.
2) join/leave Group() method should be in IoAcceptor instead of IoSession.
3) We already have session.write(message, destination), so there's nothing to change related with sending a message.
4) The parameter of IoAcceptor.joinGroup() and IoAcceptor.leaveGroup() should be abstracted as much as possible so it can work with various multicast frameworks needless to say ordinary multicast socket.

Consequently, we need to,

1) Define a SocketAddress that can abstract existing multicast group addresses.
2) Add IoAcceptor.join/leave Group() which throws UnsupportedOperationException by default.

Please let me know I am getting something wrong.  Any feed back from multicast expert is welcome!

      was (Author: trustin):
    My research was too shallow.  It's not that extremely simple.

1) It seems like a connected MulticastSocket doesn't make sense, so we will need only an IoAcceptor implementation for multicast socket, derived from DatagramAcceptor.
2) We already have session.write(message, destination), so there's nothing to change related with sending a message.
3) The parameter of IoAcceptor.joinGroup() and IoAcceptor.leaveGroup() should be abstracted as much as possible so it can work with various multicast frameworks needless to say ordinary multicast socket.

Consequently, we need to,

1) Define a SocketAddress that can abstract existing multicast group addresses.
2) Add IoAcceptor.join/leave Group() which throws UnsupportedOperationException by default.

Please let me know I am getting something wrong.  Any feed back from multicast expert is welcome!
  
> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531373 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

We could map 'join' operation to session creation and 'leave' operation to session close.  I don't have much experience with multicast, so please let me know what additional operations are required.

What do you think about adding JGroups transport?  Then we will get to know what is missing now.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Jan S. Rellermeyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan S. Rellermeyer updated DIRMINA-438:
---------------------------------------

    Attachment: diff.txt

patch

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675006#action_12675006 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

- currently only unicast is being used by said server.

- I will try to get some snapshots later, right now I just don't have the time.

- on a side not: i cannot get the AprDatagramAcceptor to join multicast groups under windows, although all calls to tomcat native and apr return APR_SUCCESS... the same code on the same machine booted to linux however works fine


> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Julien Vermillard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531066 ] 

Julien Vermillard commented on DIRMINA-438:
-------------------------------------------

Yes, but we need to modify IoSession API for add a generic multicast support

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531055 ] 

Trustin Lee commented on DIRMINA-438:
-------------------------------------

Can we support multicast using APR transport implementation until Java 7 is released?

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Critical
>             Fix For: 2.0.0-M1
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee updated DIRMINA-438:
--------------------------------

    Fix Version/s:     (was: 2.0.0-M1)

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696110#action_12696110 ] 

Lorenz Breu commented on DIRMINA-438:
-------------------------------------

probably not.
 i think i "hacked" a fixed version of tomcat native ( i think it's
called tomcat-apr) into my local repo... tomcat native has been fixed
officially since i did that, but i have no idea how they integrate with
all the other stuff and whether they commit to the mvn repo or not...


> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-438) Multicast support for MINA API

Posted by "Lorenz Breu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lorenz Breu updated DIRMINA-438:
--------------------------------

    Attachment: AprDatagramConnector.java
                AprDatagramAcceptor.java
                diff_apr.txt

OK, here are the changes I made:
diff_apr.txt contains the changes I made to AprSession, and the other two files are new.

The Acceptor and Connector require the latest version of tomcat-native, as 1.1.15 and even  early 1.1.16 had a bunch of typos. I deployed a fixed version in my local mvn repo to use my MINA transport-apr classes.

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Assignee: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: AprDatagramAcceptor.java, AprDatagramConnector.java, diff.txt, diff_apr.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-438) Multicast support for MINA API

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675004#action_12675004 ] 

Emmanuel Lecharny commented on DIRMINA-438:
-------------------------------------------

It would be interesting to get some YourKit memory snapshots to be able to determinate which objects are being 'lost'...

> Multicast support for MINA API 
> -------------------------------
>
>                 Key: DIRMINA-438
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-438
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Julien Vermillard
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: diff.txt
>
>
> For supporting multicast over UDP we need to change the MINA API for
> Set the multicast Time to Live (TTL) for a multicast transmission.
> Joining a multicast group for a given session.
> Leaving a multicast group.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.