Some notes I made on using Camel with Azure Service Bus

2016-11-21 Thread Fredrik Jönsson
Hi, I haven’t seen many examples of this sort, so I thought I'd share some experiences I made when using Camel with Azure Service Bus, just in case someone else might be interested. https://www.kth.se/blogs/1337/2016/11/using-apache-camel-with-azure-service-bus/ If someone would go so far as

Re: How to invoking one rest webservice json response list property values to another rest webservice in one router.

2016-11-21 Thread Tomohisa Igarashi
Oops, I forgot to add doc links... http://camel.apache.org/splitter.html http://camel.apache.org/json.html http://camel.apache.org/http.html http://camel.apache.org/http4.html On 11/22/2016 12:06 PM, Tomohisa Igarashi wrote: Like this? .to("http://localhost:8081/products/toDayDate=201

Re: How to invoking one rest webservice json response list property values to another rest webservice in one router.

2016-11-21 Thread Tomohisa Igarashi
Like this? .to("http://localhost:8081/products/toDayDate=20161121;) .unmarshal() .json() .split(simple("${body.getProductList}")) .setHeader(Exchange.HTTP_URI, simple("http://localhost:8081/price/${body.getProductId};)) .to("http://dummy;) .end(); On 11/

Re: Batch insertion issue when shutting down apache camel

2016-11-21 Thread Tomohisa Igarashi
Hi, I would say transaction is the answer for the case like this, you can use transaction synchronization for non-transacted resources. But... it's worth a try setting CLIENT_ACKNOWLEDGE and invoke acknowledge() after you finish processing. You can access original JMS message by

Re: send reply body after finishing complete route

2016-11-21 Thread Claus Ibsen
If you want to do a fork/join pattern with the splitter, then see http://camel.apache.org/composed-message-processor.html with the spliter only way. eg use the aggregation strategy to merge your result. On Mon, Nov 21, 2016 at 4:15 PM, DanielArias wrote: > Hi, I'm trying to

send reply body after finishing complete route

2016-11-21 Thread Daniel Arias Ramirez
Hi, I'm trying to make a synchronous call to an activemq sending a body right after I process some rest service invocation. Here is my code: some process here.. sent to this route. private String velocitySetThirdPartyTemplate = "velocity:file://url/velocity/file/SetThirdParty_Template.vm";

Re: mainframe FTPS file transfer

2016-11-21 Thread lsantos
Thanks, will try that out. On 21/11/2016 10:07, souciance [via Camel] wrote: > camel-ftp2 inherits a lot of the parameters from > http://camel.apache.org/file2.html [1] . There is one parameter called > charset. You can try to set that to the encoding you want and test itl > > On Mon,

Re: send reply body after finishing complete route

2016-11-21 Thread DanielArias
I already did that, but is still taking the body of the processor that sends to the splitter. I even set the exchange.getIn().setBody() and the exchange.getOut().setBody() whit the body I need. but nothing :( -- View this message in context:

send reply body after finishing complete route

2016-11-21 Thread DanielArias
Hi, I'm trying to make a synchronous call to an activemq sending a body right after I process some rest service invocation. Here is my code: some process here.. sent to this route. private String velocitySetThirdPartyTemplate = "velocity:file://url/velocity/file/SetThirdParty_Template.vm";

Re: send reply body after finishing complete route

2016-11-21 Thread souciance
I would assume since it is an InOut pattern, you need to set the body to your Out exchange. You should be able to do that in your processor. On Mon, Nov 21, 2016 at 4:15 PM, DanielArias [via Camel] < ml-node+s465427n5790291...@n5.nabble.com> wrote: > Hi, I'm trying to make a synchronous call to

Re: mainframe FTPS file transfer

2016-11-21 Thread lsantos
Thanks for the prompt response. I would have another question, mainframes have a different character encoding, ebcdic, which has 4 different flavours. I cannot see in its docs any way of configuring the ftp component to do that. How can I change the character encoding? On 21/11/2016

Re: mainframe FTPS file transfer

2016-11-21 Thread souciance
camel-ftp2 inherits a lot of the parameters from http://camel.apache.org/file2.html . There is one parameter called charset. You can try to set that to the encoding you want and test itl On Mon, Nov 21, 2016 at 3:59 PM, lsantos [via Camel] < ml-node+s465427n5790289...@n5.nabble.com> wrote: > >

Re: mainframe FTPS file transfer

2016-11-21 Thread souciance
http://camel.apache.org/ftp2.html It supports FTPS. On Mon, Nov 21, 2016 at 3:43 PM, lsantos [via Camel] < ml-node+s465427n5790287...@n5.nabble.com> wrote: > > Hello camel users, > > I need to transfer a file to the mainframe using the ftps network > protocol, and I was wondering if there is any

mainframe FTPS file transfer

2016-11-21 Thread lsantos
Hello camel users, I need to transfer a file to the mainframe using the ftps network protocol, and I was wondering if there is any camel component that could help me. -- View this message in context: http://camel.465427.n5.nabble.com/mainframe-FTPS-file-transfer-tp5790287.html Sent from the

Camel Duplicate messages on IBM MQ

2016-11-21 Thread Shabin5785
Hi, I have a simple route putting data into a topic. Its given below. from("direct:bb") .marshal().xstream() .setHeader("CamelJmsDestinationName", constant("topic:///mytopic?targetClient=1")) .to("jms:topic:/mytopic?useMessageIDAsCorrelationID=true"); I followed the camel JMS page tutorial

Re: SQS FIFO

2016-11-21 Thread Andrea Cosentino
Maybe you can raise a JIRA for tracking this feature request. -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On Monday, November 21, 2016 9:07 AM,

Re: SQS FIFO

2016-11-21 Thread Bilgin Ibryam
Keep in mind, FIFO queues are currently available only in few regions. Also, it is available only though the latest AWS JDK. In the past, we had cases where a new AWS features has been available in the Camel trunk in less than a week. So, it is only a matter of time and a volunteer I'd say. Of

Batch insertion issue when shutting down apache camel

2016-11-21 Thread Priyanka
I am doing batch insertion in mysql using mybatis.I keep adding messages to an ArrayList and fire the query when ArrayList size has reached the batch size. log message="Multicasting data ${body} to file system and database" /> ${body.size()} == ${properties:batch.size}

Re: Remote connect Hawtio to view Camel routes

2016-11-21 Thread souciance
Ok the workaround I found is that I have to specify the entire url in the "Host" input field in the connection settings. Putting the jolokia path in "Path" is what produces error. -- View this message in context:

How to invoking one rest webservice json response list property values to another rest webservice in one router.

2016-11-21 Thread Gunjara
How to invoking one rest webservice json response list property values to another rest webservice in one router. example: 1.Rest call localhost:8081/products/toDayDate=20161121 , it gives list of products { "Id": "610", "Name": "15",

Remote connect Hawtio to view Camel routes

2016-11-21 Thread souciance
Hello, Has anyone been able to install hawtio locally and connect to a jolokia agent running on an EC2 or any other remote server to view Camel routes? I am running a jolokia agent inside Karaf. Locally this works fine. But for remote connection I get HTTP 405 error POST is not allowed. I can

Re: java.io.IOException: Response header too large during upload to camel-jetty endpoint

2016-11-21 Thread Vova Shelgunov
I just return new object from UploadFromDiskActionProcessor.process. 2016-11-21 5:15 GMT+03:00 Tomohisa Igarashi : > Hi, > > Are you responding with IN message without removing headers? You may want > to add headerFilterStrategy to filter unnecessary headers from response.

SQS FIFO

2016-11-21 Thread Jagwani, Prakash
Hi. It looks like AWS-SQS is going to start supporting FIFO on their queues. https://aws.amazon.com/about-aws/whats-new/2016/11/amazon-sqs-introduces-fifo-queues-with-exactly-once-processing-and-lower-prices-for-standard-queues/ Any ideas when we can do this with the Camel API or does it