Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created October 19, 2012 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndemic/3916027 to your computer and use it in GitHub Desktop.
Save johndemic/3916027 to your computer and use it in GitHub Desktop.
Stock Quote Flow
<flow name="main">
<zeromq:inbound-endpoint address="tcp://*:9090" socket-operation="bind"
exchange-pattern="request-response"/>
<protobuf:deserialize
protobufClass="com.acmesoft.stock.model.serialization.protobuf.StockQuoteRequestBuffer"/>
<expression-transformer
expression="com.acmesoft.stock.model.StockQuoteRequest.fromProtocolBuffer(payload)"/>
<component class="com.acmesoft.stock.service.StockDataServiceImpl"/>
<expression-transformer
expression="return com.acmesoft.stock.model.StockQuote.toProtocolBuffer(payload)"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment