-
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
-
Regarding exponential backoff --
Have a look at RetryTemplate provided by Spring Batch and the subsequent ExponentialBackOffPolicy