[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1148) Remove node id address mapping

Tim Fox (JIRA) jira-events at lists.jboss.org
Mon Nov 12 09:46:44 EST 2007


Remove node id address mapping
------------------------------

                 Key: JBMESSAGING-1148
                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1148
             Project: JBoss Messaging
          Issue Type: Task
            Reporter: Tim Fox
         Assigned To: Tim Fox
             Fix For: 2.0.0 Beta


We can dramatically simplify the way we currently deal with node id- address mappings.

We can pass in node id as additional data before call to connect so each address in the view has the extra data - this makes node id - address mapping redundant, and we can remove the join and leave messages. :)

We can also remove the failovermap altogether - and generate it on the fly from the view (now it becomes trivial!!)

This should vastly simplify things and remove the scope for race conditions.


You can associate arbitrary data with an IpAddress, see below:

|                JChannel c=new JChannel(properties);
               Map<String,Object> m=new HashMap<String,Object>();
               m.put("additional_data", new byte[]{'b', 'e', 'l', 'a'});
               c.down(new Event(Event.CONFIG, m));
               c.connect("bla");
               IpAddress addr=(IpAddress)c.getLocalAddress();
               System.out.println("address is " + addr);
               assertNotNull(addr.getAdditionalData());
               assertEquals('b', addr.getAdditionalData()[0]);
               c.close();| 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list