Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-06 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-15646 On Mon, Oct 5, 2020 at 7:01 PM Site Register wrote: > > Can somebody help to create a jira for this because I don't have the > permission? > Please use below codes to reproduce. > > @Named("ConvertType") > @Log4j2 > public

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-05 Thread Site Register
Can somebody help to create a jira for this because I don't have the permission? Please use below codes to reproduce. @Named("ConvertType") @Log4j2 public class ConvertType implements Processor { private static final Logger logger = LoggerFactory.getLogger(ConvertType.class); @Override publi

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-05 Thread Claus Ibsen
On Sun, Oct 4, 2020 at 9:02 PM Site Register wrote: > > I went through Camel MongoDB source code > (https://github.com/apache/camel/blob/af7e383e9fc1d25ce9665f74d33672cc5b507952/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java#L424) > I found on line

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-04 Thread Site Register
I went through Camel MongoDB source code (https://github.com/apache/camel/blob/af7e383e9fc1d25ce9665f74d33672cc5b507952/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbProducer.java#L424) I found on line 428, it returns not null for trying to convert List which c

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-03 Thread Site Register
Thank you Claus, I went to  https://github.com/apache/camel/blob/master/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbOperationsTest.java  and simplified my codes but still got the same results. We had a project and I tried to convince to leverage Camel features

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-03 Thread Claus Ibsen
Hi It can be a good idea to look at the unit tests of the components as they often cover how a functionality may be used (if tested) or at least help you in the right direction. On Sat, Oct 3, 2020 at 12:14 AM Site Register wrote: > > Hi All, > According to the document MongoDB :: Apache Camel

Re: Mongodb Batch Insert Using Aggregate Not Working

2020-10-02 Thread Site Register
Hi All, According to the document MongoDB :: Apache Camel , it supposes to batch insert into mongodb. However I found it only inserted the first record of the batch. I also added a process right before mongodb insert and the message having a list of the document. Very appreciated if you can hel