Merge pull request #79 from ghillert/INTSAMPLES-100
INTSAMPLES-100 - Fix cafe-amqp JSON Serialization
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<int:service-activator method="prepareColdDrink">
|
||||
<bean class="org.springframework.integration.samples.cafe.xml.Barista"/>
|
||||
</int:service-activator>
|
||||
<int:object-to-json-transformer />
|
||||
<int:object-to-json-transformer content-type="text/x-json"/>
|
||||
</int:chain>
|
||||
|
||||
<!-- rabbit exchanges, queues, and bindings used by this app -->
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<int:service-activator method="prepareHotDrink">
|
||||
<bean class="org.springframework.integration.samples.cafe.xml.Barista"/>
|
||||
</int:service-activator>
|
||||
<int:object-to-json-transformer />
|
||||
<int:object-to-json-transformer content-type="text/x-json"/>
|
||||
</int:chain>
|
||||
|
||||
<!-- rabbit exchanges, queues, and bindings used by this app -->
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<int:header name="ICED" expression="payload.isIced()"/>
|
||||
</int:header-enricher>
|
||||
|
||||
<int:object-to-json-transformer id="drink-to-json" input-channel="drinks" output-channel="jsonDrinks" />
|
||||
<int:object-to-json-transformer id="drink-to-json" input-channel="drinks" output-channel="jsonDrinks" content-type="text/x-json"/>
|
||||
|
||||
<int:router input-channel="jsonDrinks" expression="headers.ICED ? 'coldDrinks' : 'hotDrinks'"/>
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<int:header name="NUMBER" expression="payload.getOrderNumber()" />
|
||||
</int:header-enricher>
|
||||
|
||||
<int:object-to-json-transformer id="delivery-to-json" input-channel="deliveries" output-channel="jsonDeliveries"/>
|
||||
<int:object-to-json-transformer id="delivery-to-json" input-channel="deliveries" output-channel="jsonDeliveries" content-type="text/x-json"/>
|
||||
|
||||
<int:channel id="jsonDeliveries" />
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<int:header name="NUMBER" expression="payload.getNumber()"/>
|
||||
</int:header-enricher>
|
||||
|
||||
<int:object-to-json-transformer input-channel="newOrders" output-channel="jsonNewOrders" />
|
||||
<int:object-to-json-transformer input-channel="newOrders" output-channel="jsonNewOrders" content-type="text/x-json"/>
|
||||
|
||||
<int:channel id="jsonNewOrders" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user