Results 1 to 2 of 2

Thread: AmfHttpMessageConverter

  1. #1
    Join Date
    Dec 2009
    Posts
    3

    Default AmfHttpMessageConverter

    Can someone explain how I would configure and use the new AmfHttpMessageConverter class? I've got the AMFView sending AMF out, but I would like to be able to submit AMF data to the server (so I believe I need this class too).

    I've tried configuring it as the only messageConverters for the AnnotationMethodHandlerAdapter. However, it never gets triggered.

  2. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    The latest version of the Test Drive (included in the Spring BlazeDS 1.5.0.M2 distribution) shows an example of how this can be configured using a BeanPostProcessor. In particular, note this line in flex-servlet.xml:

    Code:
    <!-- This BeanPostProcessor adds the AmfHttpMessageConverter to the list of registered HttpMessageConverters -->
    <bean id="amfInstaller" class="org.springframework.flex.samples.rest.HandlerAdapterPostProcessor"/>
    and check out the source of HandlerAdapterPostProcessor. This saves you from having to manually provide full configuration for AnnotationMethodHandlerAdapter.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

Posting Permissions

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