Announcement Announcement Module
Collapse
No announcement yet.
XML formatting issue with JAXB_FORMATTED_OU TPUT Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML formatting issue with JAXB_FORMATTED_OU TPUT

    Has anyone got this working?

    Code:
    <bean id="writer2" class="org.springframework.batch.item.xml.StaxEventItemWriter"
    		scope="step">
    		<property name="marshaller">
    			<bean class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
    				<property name="contextPath" value="com.tnt.express.coins.batch.output" />
    				<property name="marshallerProperties">
    					<map>
    						<entry>
    							<key>
    								<util:constant static-field="javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT" />
    							</key>
    							<value type="java.lang.Boolean">true</value>
    						</entry>
    					</map>
    				</property>
    			</bean>
    		</property>
    This property works if I use JAXB directly, but doen't when used with spring batch.

    Any ideas?
Working...
X