-
Dec 29th, 2010, 07:39 PM
#1
SI to c2dm
Has anyone used spring integration to talk to c2dm? I'm new to SI, so I'm not entirely sure how to do this with SI rather than manually coding the HttpURLConnection. I need to post to a google web address, using a request property for Authorization of "GoogleLogin auth=${authToken}" and passing data in a URL-encoded set of key-value pairs.
Google then either gives an HTTP Error code or a response with a single-line key value pair and potentially an updated authorization token passed in a header field with name Update-Client-Auth
Presumably I should be able to do all of this in the XML, no?
Also, how would I implement exponential backoff on the connection?
-dh
-
Dec 29th, 2010, 09:40 PM
#2
Regarding exponential backoff --
Have a look at RetryTemplate provided by Spring Batch and the subsequent ExponentialBackOffPolicy
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules