CVS update: JGroups/src/org/jgroups/client StompConnection.java

"Bela Ban" <[email protected]> Sat, 30 Oct 2010 10:14:00 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/10/30 10:14:00

  Modified:    src/org/jgroups/client StompConnection.java
  Log:
  ns
  
  Revision  Changes    Path
  1.10      +6 -2      JGroups/src/org/jgroups/client/StompConnection.java
  
  Index: StompConnection.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/client/StompConnection.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- StompConnection.java	29 Oct 2010 12:12:11 -0000	1.9
  +++ StompConnection.java	30 Oct 2010 10:14:00 -0000	1.10
  @@ -27,7 +27,7 @@
    * <p/>
    * [1] http://stomp.codehaus.org/Protocol
    * @author Bela Ban
  - * @version $Id: StompConnection.java,v 1.9 2010/10/29 12:12:11 belaban Exp $
  + * @version $Id: StompConnection.java,v 1.10 2010/10/30 10:14:00 belaban Exp $
    */
   @Experimental @Unsupported
   public class StompConnection implements Runnable {
  @@ -80,9 +80,13 @@
           while((dest=pickRandomDestination()) != null) {
               try {
                   connect(dest);
  +                if(log.isDebugEnabled())
  +                    log.debug("connected to " + dest);
                   break;
               }
               catch(IOException ex) {
  +                if(log.isErrorEnabled())
  +                    log.error("failed connecting to " + dest);
                   close();
                   server_destinations.remove(dest);
               }
  @@ -248,7 +252,7 @@
                       reconnect();
                   }
                   catch(IOException e1) {
  -                    log.warn("failed to reconnect; runner thread terminated");
  +                    log.warn("failed to reconnect; runner thread terminated, cause: " + e1);
                   }
               }
               catch(Throwable t) {
  
  
  

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev