Camel :: MongoDB :: Save Operation - Does Not Upsert

2016-05-31 Thread web_nab...@sunilsamuel.com
Hello, I am using Apache Camel 2.14.0. I am calling the mongo endpoint in the following format: mongodb:product-reference-mongo?database=ProductReferenceMetaData&collection=productVersions&operation=save According to the documentation, the 'save' operation is supposed to update it if it exists

Re: Camel :: MongoDB :: Save Operation - Does Not Upsert

2016-06-27 Thread web_nab...@sunilsamuel.com
Hello, For anyone who may run into this. It seems that if I add a field into my record and call 'save', this new field is not stored in MongoDB. So, say my original record is as follows: { id : "id", "firstName" : "First Name" } and I want to update it with the following : { id : "id", "first

cxf:rsClient :: Append to Address that was already configured

2016-06-27 Thread web_nab...@sunilsamuel.com
Hello, I configured the rsClient as follows: http://localhost:${port}/${something}/get/data"/> In the route, I would like to use the address that is configured within the cxf:rsClient and add additional query parameters. http://camel.465427.n5.nabble.com/cxf-rsClient-Append-to-

Re: ahc-ws

2016-08-09 Thread web_nab...@sunilsamuel.com
Hi Sanjana, Were you able to find a solution for this? If so, please update the post. thanks, sgs. -- View this message in context: http://camel.465427.n5.nabble.com/ahc-ws-tp5770524p5786217.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Reuse Exchange between routes using "direct" and "direct-vm"

2015-11-19 Thread web_nab...@sunilsamuel.com
Hello, Here is the use case. I have two Contexts, ContextA and ContextB. ContextA has the following route: route("direct:start").setHeader("myNewHeader","some value").to("direct-vm:nextB"); ContextB has the following route: route ("direct-vm:nextB").log ("${header.myNewHeader}") The "m

Reuse Exchange between routes using "direct" and "direct-vm"

2015-11-19 Thread web_nab...@sunilsamuel.com
Hello, I have two routes, one "direct-vm" and the other "direct". I create a property (or header) element in the exchange and I want that to be preserved when I call the next route, which is a "direct". But it seems that a new exchange is created. How can I preserve meta data among the differen

Re: Reuse Exchange between routes using "direct" and "direct-vm"

2015-11-21 Thread web_nab...@sunilsamuel.com
Hello,You are correct. After doing a bit more debugging, I realized the issue was not going from one endpoint to another, it is that one of the endpoint is splitting and I may need to do some sort of aggregation to get this to work.I'll start another post since my issue is not caused by traversing

Re: "Dynamic" data format in route

2016-01-25 Thread web_nab...@sunilsamuel.com
Hello, I wanted to provide a solution for anyone else who may have the same questions. I also had a similar requirement where I create several data formats via blueprint but I wanted a way for the route to determine which data format to use. That is, use a property value to determine the data f

dataformat:// Component with JSON [reposting in Users]

2016-01-27 Thread web_nab...@sunilsamuel.com
NOTE: I am not sure if I've been posting in the wrong section (Development), so I am reposting on Users. Hello, I am trying to use the dataformat: component to unmarshal a JSON payload. The following code works: from("direct-vm:moxy-unmarshal-json") .unmarshal("jsonDataformat"); I wan