Not sure I understood what you are looking for. <convertBodyTo> will:
- return the converted object if a suitable type converter could be found - null if the message payload is null - throw an exception if no suitable type converter could be found Best, Christian Sent from a mobile device Am 16.05.2012 17:16 schrieb "Olivier Roger" <[email protected]>: > Hello Camel ! > > I was wondering if there was a possibility to enforce that the > <convertBodyTo> EIP returns a non-null value. > This is already the case when using the TypeConverter when choosing to use > the mandatoryConvertTo() method instead of convertTo. > > Thank in advance, > > Olivier Roger > > -- > View this message in context: > http://camel.465427.n5.nabble.com/mandatory-attribute-in-the-ConvertBodyTo-Spring-DSL-tp5710933.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
