Announcement Announcement Module
Collapse
No announcement yet.
AmfHttpMessageConverter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X