MulticastDiscoveryAgent question ...

2006-08-06 Thread Sridhar Komandur

Team,

I had a question regarding the code below - doTimeKeepingServices() is
called the very first time and
then it is waiting on mcast.receive - so it will advertize itself after
hearing from another broker, assuming keepAliveInterval
has elapsed.

Should we instead run doTimeKeepingServices on its own schedule, instead of
relying on distributed event driven advertisement ?  My concern is 1. that
since the first advertisement
is not retried, a new broker might miss others when its advertisement
(multicast packet) is lost on occasion (everybody is waiting on multicast
receive). 2. When large number of brokers are brought up, potential race
condition would result in some brokers not see each other.

I will create a Jira if somebody can confirm I haven't missed anything.

(Coming from a router background, usually there is a base timer that drives
all the calendar activity in the message router)

Thanks!
Regards
- Sridhar

public void run(){
   byte[] buf=new byte[BUFF_SIZE];
   DatagramPacket packet=new DatagramPacket(buf,0,buf.length);
   while(started.get()){
   doTimeKeepingServices();
   try{
   mcast.receive(packet);
   if(packet.getLength()0){
   String str=new String(packet.getData(),packet.getOffset
(),packet.getLength());
   processData(str);
   }
   }catch(SocketTimeoutException se){
   // ignore
   }catch(IOException e){
   log.error(failed to process packet: +e);
   }
   }
   }


[jira] Work started: (AMQ-570) Create sample activemq.xml files under assembly/src/sample-conf similar to what we had in 3.x

2006-08-06 Thread Fritz Oconer (JIRA)
 [ https://issues.apache.org/activemq/browse/AMQ-570?page=all ]

Work on AMQ-570 started by Fritz Oconer.

 Create sample activemq.xml files under assembly/src/sample-conf similar to 
 what we had in 3.x
 -

 Key: AMQ-570
 URL: https://issues.apache.org/activemq/browse/AMQ-570
 Project: ActiveMQ
  Issue Type: Task
Reporter: Hiram Chirino
 Assigned To: Fritz Oconer
 Fix For: 4.1




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