I have a route:

from("direct:input")
.wiretap("direct:sendToTopic")
.to("mongodb:deliveredEventMongoDB?database=ngw&collection=deliveredevents&operation=insert");

direct:input provably receives a brand new BasicDBObject filled with a
document and lacks a _id.

direct:sendToTopic provably receives the same BasicDBObject except now it
has an _id field.

Is the mongodb insert operation intended to mutate the input data? That is
the only thing I can think is happening.

[ Another case perhaps where multicast with a cloned Message is actually
required... ]

James

Reply via email to