Hey,

I would use CBR 
(https://www.enterpriseintegrationpatterns.com/patterns/messaging/ContentBasedRouter.html)
 + Body check for this.

Cheers
Dmitry

-----Original Message-----
From: Ron Cecchini [mailto:roncecch...@comcast.net] 
Sent: Friday, June 21, 2019 2:23 PM
To: users@camel.apache.org
Subject: How to unmarshal when you don't know what you're unmarshalling?

Hey, all.

I have a route that's sitting on a port and it can receive 1 of 2 different XML 
messages.

I was simply going to try to unmarshal with the first one, and if it errors, 
unmarshal with the next one.

But is there a smarter or best practices way to handle this?

Thanks.

Reply via email to