You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2008/09/11 09:36:28 UTC

svn commit: r694160 - /servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Author: lhein
Date: Thu Sep 11 00:36:27 2008
New Revision: 694160

URL: http://svn.apache.org/viewvc?rev=694160&view=rev
Log:
- timeout is now specified in millis (as almost every other timeout in smx is)
- default timeout is now 1 hour instead of 10 seconds which was really short

Modified:
    servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Modified: servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=694160&r1=694159&r2=694160&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java (original)
+++ servicemix/components/bindings/servicemix-cxf-bc/trunk/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java Thu Sep 11 00:36:27 2008
@@ -144,7 +144,10 @@
 
     private String locationURI;
 
-    private int timeout = 10;
+    private long timeout = 60l * 60l * 1000l; //     60 minutes 
+                                              // *   60 seconds 
+                                              // * 1000 millis
+                                              // = 1 hour timeout as default
 
     private boolean useJBIWrapper = true;
     private EndpointInfo ei;
@@ -588,7 +591,7 @@
                         && !CxfBcConsumer.this.isOneway) {
                     message.getInterceptorChain().pause();
                     context.getDeliveryChannel().sendSync(exchange,
-                            timeout * 1000);
+                            timeout);
                     process(exchange);
                 } else {
                     context.getDeliveryChannel().send(exchange);
@@ -779,14 +782,14 @@
           * Specifies the interval for which the endpoint will wait for a 
           * response, This is specified in seconds.
           *
-          * @param  timeout the number of seconds to wait for a response
-          * @org.apache.xbean.Property description="the number of seconds the endpoint will wait for a response. The default is 10."
+          * @param  timeout the number of millis to wait for a response
+          * @org.apache.xbean.Property description="the number of millis the endpoint will wait for a response. The default is 1 hour."
           **/
-    public void setTimeout(int timeout) {
+    public void setTimeout(long timeout) {
         this.timeout = timeout;
     }
 
-    public int getTimeout() {
+    public long getTimeout() {
         return timeout;
     }