RE: Configure ActiveMQ queue forwarding based on wildcard destinations

2015-06-24 Thread elrick.dutoit
Thanks. I will have a look at the resources you listed. I guess you still need to provide a dummy "to" element as part of the route, but by setting the CamelJMSDestination header this will actually override the producer endpoint? Regards From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s46542

Re: Configure ActiveMQ queue forwarding based on wildcard destinations

2015-06-24 Thread Claus Ibsen
Hi Yes. You can set a header from the spring xml dsl, foo-${header.someName} And use the simple language to build the string value using dynamic tokens. http://camel.apache.org/simple And for more powerful languages you can use groovy, mvel etc http://camel.apache.org/languages.html You

Re: Howto set up an NT FTP Client in Spring

2015-06-24 Thread yogu13
Hello, Camel complains because you are trying to set org.apache.commons.net.ftp.FTPFileEntryParser to a method accepting org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory. Otherways you can set your ftpclient to recognize NT FTP entries is by setting a system property "org.apache.common

Re: camel - exception handling

2015-06-24 Thread yogu13
Hello Jack, if handled is set to "false" then the exception is not handled, so it will be stored as an exception on the exchange and break out from the route. Continued should be available for use, Not sure why isnt it working in your case.. can you upgrade to latest and check if you still get th

Re: camel - exception handling

2015-06-24 Thread Andrew Block
Nothing seems to jump out. Would you be able to share you entire camel context? Thanks --  Andrew Block On June 24, 2015 at 3:21:30 PM, jackkirsten (jkfrie...@hotmail.com) wrote: Hi Andrew, I'm also hitting the same exception. If is available to use, why is not working? This is what I h

overriding properties in Camel Enhanced Spring test

2015-06-24 Thread Minh Tran
Hi I'm struggling to work out how to override any properties in a Camel Enhanced Spring test. The documentation says that it has "feature parity" with CamelTestSupport but I can't see any ability to do it. To be clear, I'd like to do something like overriding the useOverridePropertiesWithPrope

Re: Apache Camel Routing and Apache CXF Rest with Proxy

2015-06-24 Thread Bhavesh Mistry
I just need some help and guidelines with above issue. Stack-0verflow Question: http://stackoverflow.com/questions/30853744/apache-camel-and-cxf-jax-rs-rest-services-end-point-routing-and-proxy-server Thanks, Bhavesh On Mon, Jun 15, 2015 at 2:56 PM, Bhavesh Mistry wrote: > Hi All, > > > > I am

Re: camel - exception handling

2015-06-24 Thread jackkirsten
Hi Andrew, I'm also hitting the same exception. If is available to use, why is not working? This is what I have and Camel doesn't seem to be happy with it. I want to log the error and move on with the route rather than stopping the flow. If I set Handled = false, wouldn't it break the flow?

[Camel-kafka] KafkaProducer causes camel route to loop infinitely

2015-06-24 Thread Rahul Jain
The KafkaProducer class reads the topic name from exchange headers. This causes a problem when the route ends with a "to" endpoint since in this case, the exchange still has its header set to the "from" endpoint's topic. See my comments in https://issues.apache.org/jira/browse/CAMEL-7331 Thanks,

Howto set up an NT FTP Client in Spring

2015-06-24 Thread bbuzzard
I can do this in java, but I would like to set up a route in camel.xml that pulls files from an NT FTP Server. I believe all I have to do is create a new FTPClient instance that uses the NTFTPFileEntryParser and add that ftpClient instance to the route url. Here's what I set up in camel.xml.

No adapter for endpoint exception - using camel with spring-boot & spring-ws

2015-06-24 Thread Matthew Wells
I am trying to use camel (2.15.2) within a spring-boot application to handle incoming web service calls. I created an initial working spring boot project (no camel) following the guidelines here http://spring.io/guides/gs/producing-web-service/ I then attempted to integrate the Camel: Spring Web

Re: Camel 2.15.1 Aggregator: Using multiple to() endpoints

2015-06-24 Thread Ravi Nallappan
Sorry, this maybe better - using setMsgId() @Test public void request01Test() throws Exception { final PDUBean bean1 = new PDUBean(); bean1.setMsgId("1"); final PDUBean bean2 = new PDUBean(); bean2.setMsgId("2"); PDUBean rslt1 = template.requestBody(bean1, PDUBean.class);

Re: Camel 2.15.1 Aggregator: Using multiple to() endpoints

2015-06-24 Thread Ravi Nallappan
Thanks Claus. Ok, I have made some changes on my design (daisy-chaining way instead). From Maven Camel Project A: from(direct://). Maven Camel Project B: from(direct://). Maven Camel Project C: from(direct://). Maven Camel Project Main: from().to(direct://).to(direct://).to(direct://) To

MySql Data Base creation

2015-06-24 Thread Adriano
Hi, As new guy in the Camel world i'm stuck in a problem. I want to create tables in my database based on the header of the url. This is done... The problem is when i generate multiple "gets" it only creates one I had to put a thread sleep and slow-it down to 1 second per request... The route

RE: Configure ActiveMQ queue forwarding based on wildcard destinations

2015-06-24 Thread elrick.dutoit
Hi Claus, Thank you for the response. I have read through the resources pointed out, but I guess I am just too new to Camel to really understand how use these features to achieve my desired outcome. Since I am attempting to use the Camel instance embedded into ActiveMQ, it seems that I only ha

Re: swagger + jetty with REST DSL

2015-06-24 Thread Tim Dudgeon
Not sure I really understand. What I really want is to add the Swagger servlet so that it can doument my REST api that is provided by the Camel REST DSL, both running in the same Jetty server. So I use the REST DSL to define operations under /rest and want to have swagger running and documenting

Re: swagger + jetty with REST DSL

2015-06-24 Thread Claus Ibsen
Its not intended to add handlers that work with different context-paths. eg those handlers are for adding security, logging and whatnot. But you can turn on matchOnUriPrefix=true and then the camel jetty route should react. If you want /hello then add /hello to the jetty route. On Wed, Jun 24,

Re: swagger + jetty with REST DSL

2015-06-24 Thread Tim Dudgeon
I'm struggling with this, so I tried setting up a dead simple servlet example and can't even get that working. Using plain Jetty its fine, but I don't seem able to wire it into camel . I created this GIST to illustrate it: https://gist.github.com/tdudgeon/69ff3cdeb4e3ac68df87 Jetty responds on l

Recipient List

2015-06-24 Thread ram kumar
hi, i am new to camel. can anyone suggest how recipient list works on aws-s3 consumer

A maybe basic question of camel http proxy pattern

2015-06-24 Thread cloud
Hi team, I know that camel provide http proxy capability such as : --- xml config file - ... http://1.1.1.1/test?matchOnUriPrefix=true"/> ... http://2.2.2.2/url"/> ... end In my enterprise environmental , the server architectural as below: 1. camel server : 3

Camel+Netty does not retry connection on ConnectException

2015-06-24 Thread sminten
I have 2 Camel routes: from("jms:queue:" + queue + "?transacted=true") .bean(interfaceProcessor, "prepareMessage") .to("direct:interfaceRoute") .end(); from("direct:interfaceRoute") .errorHandler(noErrorHandler()) .setExchangePattern(ExchangePattern.OutIn)