camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject MongoDB, insert, and _id
Date Thu, 05 Feb 2015 11:53:02 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message