Hello,
How can I send requests via Spring Integration to a Spring WebService for every lets say every 5 mins automatically??In other words how can a client invoke a Spring WebService every 5 mins for example??Should I do it with threads???In moment I have done it this way using threads but any suggestions how to configure this sort of problem in Spring Integration in a more professional way?? Would appreciate help Thanks
Code:for(;;) { System.out.println("Request message payload :"+message.getPayload()); ((MessageChannel)context.getBean("sendChannel")).send(message); Thread.sleep(20000); System.out.println("Thread Sleeping now"); }


Reply With Quote