Jxing 6 éve
szülő
commit
b950143ea2
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/main/java/com/sagacloud/route/Route.java

+ 2 - 1
src/main/java/com/sagacloud/route/Route.java

@@ -12,6 +12,7 @@ import com.sagacloud.route.processors.Maintainance.FilterPropertyProcessor;
 import com.sagacloud.route.processors.Maintainance.QueryPropertyProcesspr;
 import com.sagacloud.route.processors.Manufacturer.MaunfacturerFilter;
 import com.sagacloud.route.processors.Manufacturer.GetVenderBySpecProcessor;
+import com.sagacloud.route.processors.PeriodTask.OnTimeTaskProcessor;
 import com.sagacloud.route.processors.PeriodTask.StatisticsProcessor;
 import com.sagacloud.route.processors.VenderMapProcessor;
 import com.sagacloud.route.processors.supplier.SupplierFilter;
@@ -32,7 +33,7 @@ public class Route extends ExceptionHandlerBaseRoute {
     public void configure() throws Exception {
         configExceptionHandler();
 
-        fromF("timer://simpleTimer?period=1m").to("direct:syncAllProject");
+        fromF("timer://simpleTimer?period=1m").process(new OnTimeTaskProcessor()).to("direct:syncAllProject");
 
         rest().get("/doc")
                 .produces("text/html;charset=UTF-8")