geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r357921 - /geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java
Date Tue, 20 Dec 2005 06:17:15 GMT
Author: dblevins
Date: Mon Dec 19 22:17:10 2005
New Revision: 357921

URL: http://svn.apache.org/viewcvs?rev=357921&view=rev
Log:
Added more debug statements to the build agent

Modified:
    geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java

Modified: geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java
URL: http://svn.apache.org/viewcvs/geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java?rev=357921&r1=357920&r2=357921&view=diff
==============================================================================
--- geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java
(original)
+++ geronimo/gbuild/trunk/gbuild-agent/src/main/java/org/apache/geronimo/gbuild/agent/ContinuumBuildAgent.java
Mon Dec 19 22:17:10 2005
@@ -112,13 +112,17 @@
     }
 
     private void processMessages(Client client) throws JMSException {
+//        MessageConsumer buildConsumer = client.createQueueConsumer(buildTaskQueue, "stan
is null");
         MessageConsumer buildConsumer = client.createQueueConsumer(buildTaskQueue);
         MessageProducer resultsProducer = client.createTopicProducer(buildResultsTopic);
+        getLogger().debug("Processing messages.");
 
         while (isRunning() && client.isConnected()) {
             Message message = buildConsumer.receive(1000);
             if (message instanceof ObjectMessage) {
                 processMessage(message, client, resultsProducer);
+            } else if (message == null){
+                getLogger().debug("time-out");
             }
         }
     }



Mime
View raw message