FW: [Spread-users] Spread daemon crashes and Java API

Tracy Boehrer tboehrer at voice3g.com
Thu May 9 11:26:25 EDT 2002


Well in my case I forced Spread to crash... ;-)  However, if it has code in it, it will crash at some point.

I modifed the Java source and added a method to AdvancedMessageListener that will get called when the Listener thread is exiting.  I pass a flag that lets me know whether it is stopping normally.  If this method is called with an abnormal stop flag, I disconnect, and then attempt some number of connect's.

-----Original Message-----
From: koorosh.alahiari at ids.allianz.com
[mailto:koorosh.alahiari at ids.allianz.com]
Sent: Thursday, May 09, 2002 4:44 AM
To: Tracy Boehrer
Cc: spread-users at lists.spread.org; spread-users-admin at lists.spread.org
Subject: Re: [Spread-users] Spread daemon crashes and Java API



Tracy,

I would like to know why your spread daemon crashes (if that's what you
mean)?

The spread guys are obviously best placed to answer this but here is what I
have done:
I handle the spread error code "CONNECTION_CLOSED"(c version) and try to
restablish
my connection. Your listener is probably termintated by spread because it
is not keeping up with the sender (a problem that I have experienced
myself:-)).

I also increased the number of backlog messages that spread allows from the
default 1000 to 10,000.

Regards, Koorosh



                                                                                                                                        
                    "Tracy Boehrer"                                                                                                     
                    <tboehrer at voice3g.com>           To:     <spread-users at lists.spread.org>                                            
                    Sent by:                         cc:                                                                                
                    spread-users-admin at lists.        Subject:     [Spread-users] Spread daemon crashes and Java API                     
                    spread.org                                                                                                          
                                                                                                                                        
                                                                                                                                        
                    08/05/02 20:14                                                                                                      
                                                                                                                                        
                                                                                                                                        



When using the Java API and either the BasicMessageListener or
AdvancedMessageListener, and the Spread daemon crashes, the
SpreadConnection.Listener thread simply terminates.  However, the
application has no clue this just happened.  What is the best way to detect
this so that I can take corrective action (attempt reconnects, terminate
myself, etc...)?


_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users









More information about the Spread-users mailing list