Re: Instagram Component ?

2016-03-25 Thread Claus Ibsen
Hi Yeah we do not have such a component. And it would be great to have one. We love contributions http://camel.apache.org/contributing On Fri, Mar 25, 2016 at 7:49 PM, Matt Sicker wrote: > No, there isn't an official component, and I don't see any third party > ones, either.

Re: Issue with dynamic uri

2016-03-25 Thread Claus Ibsen
Hi Good to hear. But mind the consumer template should be created once and re-used ideally. http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html If not you need to stop it after use so it can cleanup. On Sat, Mar 26, 2016 at 6:03 AM, Jagannath Naidu

Re: Issue with dynamic uri

2016-03-25 Thread Jagannath Naidu
Hi Claus, !!@#$@ it worked :-D. Thank you very much Below is what I am using. Logger log = Logger.getLogger(JettyRoute.class.getName()); DynamicPollEnricher pollEnricher = new DynamicPollEnricher(); public String process(Exchange exchange) throws Exception { log.info("START"); //

Re: Instagram Component ?

2016-03-25 Thread Matt Sicker
No, there isn't an official component, and I don't see any third party ones, either. On 25 March 2016 at 13:40, Mark wrote: > I'm wondering if there is an Instagram component in Camel. If not I'd like > to start work on one and can submit a pull request back to the

Instagram Component ?

2016-03-25 Thread Mark
I'm wondering if there is an Instagram component in Camel. If not I'd like to start work on one and can submit a pull request back to the baseline.

Re: Invalid URLs in wiki

2016-03-25 Thread Gregoire Autric
hi, Mihali thx for pointing this errors, I will update wiki doc, now Best Regards, Bien à vous, どうぞお元気で, Greg AUTRIC - JBoss Middleware Consultant - On Fri, Mar 25, 2016 at 5:08 PM, Mihali Mavromatis < m.mavroma...@protonmail.com> wrote:

Invalid URLs in wiki

2016-03-25 Thread Mihali Mavromatis
Hi there, Just a wiki URLs issue: See http://camel.apache.org/mail.html In the section SUN JavaMail apparently none of the displayed URLs resolve correctly. For the JavaMail you might want this: https://javamail.java.net/ For the POP3

Re: Issue with dynamic uri

2016-03-25 Thread Claus Ibsen
You can use a processor (or bean) - the code below is pseudo written in the email process(Exchange exchange) { // use simple to build the dynamic uri String uri = exchange.getContext().resolveLanguage("simple").evaluate("activemq:queue:SECOND?selector=${header.head}", String.class); // create

RE: Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
Thank you, now working. -Original Message- From: benny.gi...@gmail.com [mailto:benny.gi...@gmail.com] Sent: Friday, March 25, 2016 3:20 PM To: users@camel.apache.org Subject: Re: Camel reading file periodically Hi, With Noop=true, Camel will set idempotent=true as well, to avoid

Re: Camel reading file periodically

2016-03-25 Thread benny . gi456
Hi, With Noop=true, Camel will set idempotent=true as well, to avoid consuming the same files over and over again. So just set idempotent to false. http://camel.apache.org/file2.html Regards, Benjamin Girstl > Am 25.03.2016 um 13:53 schrieb Kasim Sert (Ibtech-Software Infrastructure) >

Re: Camel reading file periodically

2016-03-25 Thread Claus Ibsen
Hi It only reads the file the 1st time, the other times the pollEnrich cannot find any new file, and it timeout after 1 second, and the Camel route continue, where you then log an empty message. If you want to pickup files from a directory, then its better to start from file instead of using a

Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Why this route reads file for only one time, and what should I do to make it work like excpected ? from("timer://myTimer?period=1000") .log("starting...")

Re: Apache camel. InterceptSendTo doesn't work with bean endpoint

2016-03-25 Thread aturkin
Hello. thank you for your reply! I tried to use CamelSpringTestSupport and it works. My working example: public class TestTest extends CamelSpringTestSupport { @Override protected AbstractApplicationContext createApplicationContext() { return new

Re: Issue with dynamic uri

2016-03-25 Thread Jagannath Naidu
Thanks Claus, I came here for help after reading this link http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-td4939908.html . And I am fairly new to camel, would you mind sharing some/any sample code for this. Thank you very much. On 25 March 2016 at 13:35, Claus Ibsen

Re: Issue with dynamic uri

2016-03-25 Thread Claus Ibsen
If you are stuck on Camel 2.15.x you would need to write some java code where you build the uri and use a consumer template to poll. And do the enrichment from the java code. On Fri, Mar 25, 2016 at 9:02 AM, Jagannath Naidu wrote: > Thank you fabrizio. > >

Re: Customize the Http Response Code for REST Service

2016-03-25 Thread Claus Ibsen
Hi Yeah there is also an example in the CiA 2nd ed book xml https://github.com/camelinaction/camelinaction2/blob/master/chapter10/servlet-swagger-xml/src/main/resources/camel.xml and for java

Re: Issue with dynamic uri

2016-03-25 Thread Jagannath Naidu
Thank you fabrizio. But the issue is with passing dynamic uri to pollenrich. On 25 March 2016 at 13:25, fabrizio.spataro wrote: > Hello, > > abstractly dynamic uri can be do it using recipientList + simple leanguage > > http://camel.apache.org/content-enricher.html

Re: Customize the Http Response Code for REST Service

2016-03-25 Thread fabrizio.spataro
Hello, I had same problem and i resolve it using "onException tag" to intercept validation error and return another http response code Example DSL: java.your.exception 403 true . -- View this message in context:

Re: Issue with dynamic uri

2016-03-25 Thread fabrizio.spataro
Hello, abstractly dynamic uri can be do it using recipientList + simple leanguage example here: http://camel.apache.org/recipient-list.html -- View this message in context: http://camel.465427.n5.nabble.com/Issue-with-dynamic-uri-tp5779689p5779690.html Sent from the Camel - Users mailing

Issue with dynamic uri

2016-03-25 Thread Jagannath Naidu
Hi List, I have been trying to configure dynamic uri but could not find a relevant way to complete this task. Below is the problem description. 1. Client 1 posts to ROUTE 1 and waits for a response 2. ROUTE 1 uses pollenrich and polls a queue (SECOND) and gets a specific message using selector