In SAP HANA Cloud Integration: Week 1 Unit 5: Working With Data
In SAP HANA Cloud Integration: Week 1 Unit 5: Working With Data
Message
Fundamental entity containing the data being carried and routed in Camel
Messages have a body (a payload), headers, and optional attachments
Messages are uniquely identified with an identifier of type java.lang.String
Headers
– Headers are values associated with the message
Sender identifier, hints about content encoding, authentication information,…
– Headers are name-value-pairs
Name is a unique, case-insensitive string
Value is of type java.lang.Object
Attachments
– Optional – typically used for Web service and e-mail components
Body
– Type: java.lang.Object any kind of content is allowed
* Taken from the book: “Camel in Action” (2011) by Claus Ibsen and Jonathan Anstey, Manning Publications Co., ISBN 978-1-935182-36-8
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Public 2
Working with Data in SAP HANA Cloud Integration
Camel’s message model* (2)
Exchange
The message’s container during routing
Provides support for various interaction types between systems, known as Message Exchange Patterns (MEP)
– InOnly: a one-way message (e.g. JMS messaging)
– InOut: a request-response message (e.g. HTTP-based transports)
Exchange ID: a unique ID that identifies the exchange
MEP
– InOnly: exchange contains an “in message” only
– InOut: exchange contains an “in message” and an “out message” containing
the reply message for the caller
Exception: If an error occurs during runtime, the Exception field will be filled
Properties: Similar to message headers, but they last for the duration of the
entire exchange; they contain global-level information; you can store and
retrieve properties at any point during the lifetime of an exchange
* Taken from the book: “Camel in Action” (2011) by Claus Ibsen and Jonathan Anstey, Manning Publications Co., ISBN 978-1-935182-36-8
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Public 3
Working with Data in SAP HANA Cloud Integration
Understanding Camel’s message model (1)
Goals
Store data in the message header and in the properties of the exchange
Retrieve data from header and properties to build the reply message
Goals
Store data in the message header and in the properties of the exchange
Retrieve data from header and properties to build the reply message
Goals
Store data in the message header and in the properties of the exchange
Retrieve data from header and properties to build the reply message
Using Camel’s
Simple Expression Language
http://camel.apache.org/simple.html
Goals
Store data in the message header and in the properties of the exchange
Retrieve data from header and properties to build the reply message
Goals
Store data in the message header and in the properties of the exchange
Retrieve data from header and properties to build the reply message
DEMO
Working with Data in
SAP HANA Cloud
Integration
Contact information:
[email protected]
© 2016 SAP SE or an SAP affiliate company. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and
services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as
constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop
or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time
for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-
looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.