Results 1 to 2 of 2

Thread: SI to c2dm

  1. #1
    Join Date
    Jul 2008
    Posts
    10

    Default 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

  2. #2
    Join Date
    Mar 2006
    Posts
    312

    Default

    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
  •