Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Header

Type

Description

org.apache.camel.ibatis.queryName

String

Camel 1.x: The statementName used (for example: insertAccount)

CamelIBatisStatementName

String

Camel 2.0: The statementName used (for example: insertAccount)

CamelIBatisResult

Object

Camel 1.6.2/2.0: The response returned from iBatis in any of the operations. For instance a INSERT could return the auto generated key, or number of rows etc.

Message Body

Camel 1.6.1: The response from iBatis will be set as OUT body
Camel 1.6.2/2.0: The response from iBatis will only be set as body if its a SELECT statement. That means for INSERT statements Camel will not replace the body. This allows you to continue routing and keep the original body. The response from iBatis is always stored in the header with the key CamelIBatisResponse.

Samples

For example if you wish to consume beans from a JMS queue and insert them into a database you could do.

...