Re: Unknown File Language Syntax

2016-02-24 Thread Claus Ibsen
The is good if there is nothing dynamic in it. And it help workaround that bug in the simple parser. That said we could likely consider removing the backwards compatible in simple which was introduced in Camel 2.9 when the parser was re-done. On Wed, Feb 24, 2016 at 6:46 PM, Alex Soto wrote:

Re: Right component for ActiveMQ Artemis

2016-02-24 Thread Claus Ibsen
The camel-jms component would be the best. On Wed, Feb 24, 2016 at 10:37 PM, John D. Ament wrote: > All, > > I was wondering, whats the right component to use if I'm connecting to an > ActiveMQ Artemis server? Artemis supports the standard AMQP protocol, can > I just use activemq component to c

VirtualTopic message acknowledgment/confirmation

2016-02-24 Thread hayden74
Hi guys, We use VirtualTopics for event publishing and recently one of the consumers failed to process the message from the event due to some database error. >From the ActiveMQ perspectives, the message has been delivered. The client, however, failed to process it. So my question is, is there a way

Re: Unable to handle CXFRS exception using onException

2016-02-24 Thread Sergey Beryozkin
This is I'm not sure about - perhaps a current Camel message/exchange can be accessed via a thread local storage and the exception set there ? Cheers, Sergey On 24/02/16 16:08, M.Ismail wrote: Hi, I have found that I the exception is escaped and in order to handle it i had to create a CXF Exce

Right component for ActiveMQ Artemis

2016-02-24 Thread John D. Ament
All, I was wondering, whats the right component to use if I'm connecting to an ActiveMQ Artemis server? Artemis supports the standard AMQP protocol, can I just use activemq component to connect? John

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
So, to summarize: if I have ${} then use , if not, use I am not sure I have seen this explained anywhere in the documentation, perhaps it should be, to save others time. Thanks for the help Claus. Best regards, Alex soto > On Feb 24, 2016, at 12:04 PM, Claus Ibsen wrote: > > Yes

Re: Unknown File Language Syntax

2016-02-24 Thread Claus Ibsen
Yes because you have ${ } somewhere in there so the backward compatible parser is not in use. On Wed, Feb 24, 2016 at 5:54 PM, Alex Soto wrote: > Constant works, however it stops working when I add option to consume a > specific file name: > > > > file:{{env:HOME}}/.ra/chains?autoCreate=fal

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Constant works, however it stops working when I add option to consume a specific file name: file:{{env:HOME}}/.ra/chains?autoCreate=false&noop=true&idempotent=false&fileName=${body} In this case, is is processing any file name, instead of the one I am passing in the body. Curiously, ch

Sequencing of messages

2016-02-24 Thread John D. Ament
Hey guys I've got an odd ball question, just to see if anyones tried it. Suppose that I'm writing messages to SQS, where there is no guaranteed ordering. One of the patterns proposed is to follow a resequencer - http://camel.apache.org/resequencer.html to enforce message sequence number ordering.

Re: Unable to handle CXFRS exception using onException

2016-02-24 Thread M.Ismail
Hi, I have found that I the exception is escaped and in order to handle it i had to create a CXF ExceptionMapper as per the below. Is this a normal behavior? Can I re-throw the exception handled by the ExceptionMapper so that Camel can handle it? public class MyExceptionMapper implements Except

Re: Unknown File Language Syntax

2016-02-24 Thread Claus Ibsen
Hi Yeah there was a bug in the backwards compatible parser (checking the old simple style) https://issues.apache.org/jira/browse/CAMEL-9641 The problem is that your text starts with file: which is the file language part of simple where you can refer to ${file:name} etc. And the old parser support

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Startup resolution is fine, as the home directory is not expected to change. So it is and not ? This is strange, I wouldn’t have guessed it. Thanks Best regards, Alex soto > On Feb 24, 2016, at 10:21 AM, Claus Ibsen wrote: > > The simple function is > ${sysenv:HOME} > > > The {{ }} is

Re: Unknown File Language Syntax

2016-02-24 Thread Claus Ibsen
The simple function is ${sysenv:HOME} The {{ }} is property placeholders, which is replaced upon startup On Wed, Feb 24, 2016 at 4:13 PM, Alex Soto wrote: > Sorry, I am using Camel 2.16.0 > > Do you mean, like this? > > > > file:{{env:HOME}}/.ra/chains?autoCreate=false&noop=true&idempoten

Re: Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Sorry, I am using Camel 2.16.0 Do you mean, like this? file:{{env:HOME}}/.ra/chains?autoCreate=false&noop=true&idempotent=false My intention is to have {{env:HOME}} substituted with the home directory at runtime Best regards, Alex soto > On Feb 24, 2016, at 10:09 AM, Claus Ibs

Multiple interceptors?

2016-02-24 Thread James Green
http://camel.apache.org/intercept.html does not describe the behaviour of having more than one interceptor in use. For example: intercept().to("log:foo"); intercept().to("log:bar"); from("direct:start").to("direct:end"); Do both logging endpoints get triggered? If so, in any particular order?

Re: Unknown File Language Syntax

2016-02-24 Thread Claus Ibsen
Use But what version of Camel are you using? On Wed, Feb 24, 2016 at 4:04 PM, Alex Soto wrote: > Hello: > > Anybody can tell me what is wrong with this? > > > > > file:{{env:HOME}}/.ra/chains?autoCreate=false&noop=true&idempotent=false > > > > I am getting this exception: > > > Caused by:

Unknown File Language Syntax

2016-02-24 Thread Alex Soto
Hello: Anybody can tell me what is wrong with this? file:{{env:HOME}}/.ra/chains?autoCreate=false&noop=true&idempotent=false I am getting this exception: Caused by: org.apache.camel.language.simple.types.SimpleParserException: Unknown file language syntax: /Users/asoto/.ra/chains?

Re: Use Simple to log Message History?

2016-02-24 Thread James Green
Yeah we switched that on and nothing happened. Must have been us but it seemed pretty simple! On 24 February 2016 at 11:34, Claus Ibsen wrote: > You can use the tracer > http://camel.apache.org/tracer > > On Wed, Feb 24, 2016 at 12:12 PM, James Green > wrote: > > Our use-case was in debugging w

Set Header using xpath

2016-02-24 Thread krish_p
HI There, I am trying to set a header value using xpath with no luck (Camel 2.16.2) eg: .setHeader("scheduleId").xpath("//Schedule/@scheduleId", String.class) please advice -- View this message in context: http://camel.465427.n5.nabble.com/Set-Header-using-xpath-tp5778202.html Sent from t

Re: How do I access the SNI extension in HTTP4?

2016-02-24 Thread Ioannis Mavroukakis
I've put this together public class TestHttpClientConfigurer implements HttpClientConfigurer { private static final File KEYSTORE = new File("src/main/resources/config/certs/custom.jks"); private static final String PASSWORD = "password"; @Override public void configureHttpClie

FTP fileName date:now: not working

2016-02-24 Thread bsoto
Hello, I'm using FTP component and I am setting the fileName by a date expression "${date:now:MMdd}.txt", it's suppose it will create a file with the name "20160224.txt", but the finale name is "now:MMdd.txt". This is what I'm using ftp://

Re: Use Simple to log Message History?

2016-02-24 Thread Claus Ibsen
You can use the tracer http://camel.apache.org/tracer On Wed, Feb 24, 2016 at 12:12 PM, James Green wrote: > Our use-case was in debugging why a processor was being triggered twice. We > wanted to log immediately before the processor to see where the Exchange > came from second time around. > > I

Re: Use Simple to log Message History?

2016-02-24 Thread James Green
Our use-case was in debugging why a processor was being triggered twice. We wanted to log immediately before the processor to see where the Exchange came from second time around. I see a few people via Google asking how to log where the Exchange has been, thought something like this would be a use

Re: How do I access the SNI extension in HTTP4?

2016-02-24 Thread Ioannis Mavroukakis
https://docs.oracle.com/javase/8/docs/technotes/guides/security/enhancements-7.html The link says "8" but the document mentions JDK 7 Claus Ibsen 24 February 2016 at 10:37 The javadoc for that SNI says its since java 1.8. But take a 2nd look to be sure. Yeah I wo

Re: CDI Injection support

2016-02-24 Thread Antonin Stefanutti
Hi John, Thanks for the info. I didn’t see you created CAMEL-9630. Antonin > On 24 Feb 2016, at 01:20, John D. Ament wrote: > > Hi Antonin, > > Looks like you pushed up already what I was working on (when I found this > issue): https://issues.apache.org/jira/browse/CAMEL-9630 > I'll move that

Re: Setting timeout for http-conf:client doesn't seem to work

2016-02-24 Thread HARINATHA REDDY BOLLAPU
Hi i'm facing issue with socket time out, in my scenario i need to handle SocketTimeOutException after response time completion of 5 mins. Here some one said we need to user "http" component. In CXF-SOAP service how we can use http.soTimeout cloud please explain me. if possible share any refere

Re: Setting timeout for http-conf:client doesn't seem to work

2016-02-24 Thread HARINATHA REDDY BOLLAPU
Hi i'm facing issue with socket time out, in my scenario i need to handle SocketTimeOutException after response time completion of 5 mins. Here some one said we need to user "http" component. In CXF-SOAP service how we can use http.soTimeout cloud please explain me. if possible share any refere

Re: How do I access the SNI extension in HTTP4?

2016-02-24 Thread Claus Ibsen
The javadoc for that SNI says its since java 1.8. But take a 2nd look to be sure. Yeah I would assume somewhere with that configurer you can control all yourself. You may want to peak in the source of camel-http4 what happens and to give you an idea how to setup the security. You can of course al

Re: Use Simple to log Message History?

2016-02-24 Thread Claus Ibsen
What kind of logging do you want. Do you mean that verbose logging you see when there is an exception? The message history on the exchange is stored as a list of events that track the details. But the formatting is done elsewhere. On Wed, Feb 24, 2016 at 10:48 AM, James Green wrote: > Is this

Re: How do I access the SNI extension in HTTP4?

2016-02-24 Thread Ioannis Mavroukakis
Thanks Claus, isn't this a Java 7 feature though? I'm ok to try to do this manually, is the SSLContext something I could get to from HttpClientConfigurer? Claus Ibsen 24 February 2016 at 09:26 Hi I logged a ticket to get this support in Camel when we are Java 8

Use Simple to log Message History?

2016-02-24 Thread James Green
Is this possible? We really just want to from().log("${exchange.history}").to() in our route. Seems like this should be really easy? Thanks, James

Re: How do I access the SNI extension in HTTP4?

2016-02-24 Thread Claus Ibsen
Hi I logged a ticket to get this support in Camel when we are Java 8+ https://issues.apache.org/jira/browse/CAMEL-9638 Not sure how you do this today, but you likely need to setup all this a bit manually and hook into http4 as a SslContext or something. On Mon, Feb 22, 2016 at 2:56 PM, Ioannis M

Re: Switch to route in case original route fails

2016-02-24 Thread Sashika
The easiest way is to set it in a header like .setHeader(“NODE”,constant(“A”) ) when processing in each A or B. Get the header value when you want to find out which node processed the message. On Wed, Feb 24, 2016 at 1:30 PM, mnl < mnlgoya...@gmail.com > wrote: One more thing: Let's say I have

Re: Question about using maximumRedeliveries as part of redeliveryPolicyProfile

2016-02-24 Thread Claus Ibsen
The file component will on rollback leave the file as-is, and then pickup the same file again on next poll. So it may be that you are seeing. You need to decide what to do if you have "poision files" such as moving them to a error directory or something. On Tue, Feb 23, 2016 at 2:54 PM, Venugopal

Re: swagger operationid parameter

2016-02-24 Thread Claus Ibsen
Hi Ah yeah we can improve this. You are welcome log a JIRA ticket http://camel.apache.org/support.html And can you maybe if possible post what error you see in swagger? On Tue, Feb 23, 2016 at 8:18 PM, mstittle wrote: > > Trying to set the operationId on the io.swagger.models.Operation class >

Re: Switch to route in case original route fails

2016-02-24 Thread mnl
One more thing: Let's say I have C endpoint which will send to B and might failover to A in case of exception on B. Now I want to know whether it was A or B which successfully completed the request. How can I know that? This is required to process the message which A or B might send back to C.