Results 1 to 4 of 4

Thread: Porting from 1.0.4 to 2.2.2: XmlPayloadMarshallingTransformer

  1. #1
    Join Date
    Mar 2010
    Posts
    6

    Default Porting from 1.0.4 to 2.2.2: XmlPayloadMarshallingTransformer

    Hi All,

    Inherited an application that needs to be upgraded from 1.0.4 to 2.2.2. The spring configuration file declares a bean of type org.springframework.integration.xml.transformer.Xm lPayloadMarshallingTransformer, which seems to longer exist in the spring-integration-x.x.x.jar file, as of 2.0.0. The migration documentation from 1.0 to 2.0 does not make mention of this class either.

    Has this class been removed completely or refactored into another package and perhaps a new jar file? Here is the bean definition:

    Code:
    	<beans:bean id="marshallingTransformer" class="org.springframework.integration.xml.transformer.XmlPayloadMarshallingTransformer">
    	    <beans:constructor-arg>
    	        <beans:bean class="org.springframework.oxm.jibx.JibxMarshaller">
    	            <beans:property name="bindingName" value="binding" />
    	            <beans:property name="targetClass" value="com.a.b.c.d.x.TheMessage" />
    	        </beans:bean>
    	    </beans:constructor-arg>
    	    <beans:constructor-arg>
    	        <beans:bean class="org.springframework.integration.xml.transformer.ResultToStringTransformer" />
    	    </beans:constructor-arg>
    	</beans:bean>
    Thanks in advance.

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,036

    Default

    Sorry about that - the 'XmlPayload' was removed from those classnames.

    commit 8124446f9dee37293f5e8dda4bdf0c9b89eb6e08
    Author: Mark Fisher <markfisher@vmware.com>
    Date: Mon Dec 14 00:26:02 2009 +0000

    Removed 'XmlPayload' from the names of 'XmlPayloadUnmarshallingTransformer' and 'XmlPayloadMarshallingTransformer' since the former can now return a Message instance and the latter now accepts a boolean to specify whether only the payload should be passed to the marshaller or the entire Message.


    I'll add a note to the Wiki.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,036

    Default

    For future reference, Fisheye is a great resource to find this kind of thing...

    https://fisheye.springsource.org/bro...ansformer.java
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  4. #4
    Join Date
    Mar 2010
    Posts
    6

    Default

    Many thanks...that did it.

Posting Permissions

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