Hello.  I am using the dynamic router EIP component, and I need to send a
subscription message from another JVM, so I am sending the subscription
message as the message body of a JMS message.  Unfortunately, Predicates
are not serializable.  As a workaround, I could send all of the parameter
values in a POJO, including a header name and header value to be used to
construct a Predicate like "header(headerName).isEqualTo(headerValue)", and
then construct the subscription message at the destination, but this is
limiting in the types of Predicates that may be used to evaluate an
exchange going through the dynamic router to determine exchange
suitability for dynamic routing participants.  Is there some way to
serialize a Predicate?

Thanks,
Steve

Reply via email to