Results 1 to 6 of 6

Thread: sending requests

Threaded View

  1. #1
    Join Date
    Sep 2008
    Location
    Mannheim,Germany
    Posts
    125

    Question sending requests every time interval

    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"); 
    			
    		
    		}
    Last edited by ashleyvijay; Nov 4th, 2008 at 02:53 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •