.recipientList(simple("direct:${body.media}"))

So media is a List<String> property where each entry has a media value:
"sms", "email", etc.

What I get out of this is an exception (where "sms" is the only media):

org.apache.camel.component.direct.DirectConsumerNotAvailableException: No
consumers available on endpoint: Endpoint[direct://%5Bsms%5D].

If I remove the direct: from the simple expression and place it directly in
the media property value it works fine. But then my POJO "knows" about
direct: prefixes. Not what I had hoped.

Any ideas? I can't use transform() as the rest of the message needs to be
passed onwards.

James

Reply via email to