fixed breakage

This commit is contained in:
Tom McCuch
2011-11-08 09:04:35 -05:00
parent 9c9c1da7f3
commit b777bb46af
3 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ import org.springframework.integration.annotation.Gateway;
*/
public interface Cafe {
@Gateway(requestChannel="preOrders")
@Gateway(requestChannel="orders")
void placeOrder(Order order);
}

View File

@@ -27,9 +27,9 @@
<int-amqp:inbound-channel-adapter queue-names="new-orders" channel="jsonOrders" connection-factory="rabbitConnectionFactory" acknowledge-mode="AUTO" />
<int:json-to-object-transformer id="json-to-order" input-channel="jsonOrders" output-channel="orders" type="org.springframework.integration.samples.cafe.Order" />
<int:json-to-object-transformer id="json-to-order" input-channel="jsonOrders" output-channel="preOrders" type="org.springframework.integration.samples.cafe.Order" />
<int:splitter input-channel="orders" expression="payload.items" output-channel="preDrinks" apply-sequence="true"/>
<int:splitter input-channel="preOrders" expression="payload.items" output-channel="preDrinks" apply-sequence="true"/>
<int:header-enricher input-channel="preDrinks" output-channel="drinks">
<int:header name="ICED" expression="payload.isIced()"/>

View File

@@ -25,9 +25,9 @@
<!-- spring integration flow -->
<int:gateway id="cafe" service-interface="org.springframework.integration.samples.cafe.Cafe" />
<int:channel id="preOrders"/>
<int:channel id="orders"/>
<int:header-enricher input-channel="preOrders" output-channel="newOrders">
<int:header-enricher input-channel="orders" output-channel="newOrders">
<int:header name="NUMBER" expression="payload.getNumber()"/>
</int:header-enricher>