Re: What's wrong in my REST paths?

2015-03-24 Thread Giorgio Vespucci
Claus, I've done a little investigation about it. It seems that the method ServletRestServletResolveConsumerStrategy.matchRestPath(String requestPath, String consumerPath, boolean wildcard) called by ServletRestServletResolveConsumerStrategy.resolve(HttpServletRequest request, Map consumers) doesn

JMX objectname of processors MBeans

2015-03-24 Thread blommish
Hi, I have a Processor defined as the following, @ManagedResource(description = "Wiretap value") public class WiretapValue implements Processor { But to actually be able to see this in Jconsole, I can't use .process() in my routebuilder but need to use .bean((WiretapValue) getContext().getRegis

Re: blueprint + myBatis + transactions

2015-03-24 Thread Willem Jiang
camel-mybatis component is out of date, if you still want to use it, you may consider to submit a patch for it. We are always welcome the contribution. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitte

Re: No consumers available on endpoint issue

2015-03-24 Thread Kemal Bayram
Hello Antoine, The send/receive endpoints are correct in that between the contexts both ends use direct-vm and within the context direct is used. My problem is when I change the direct-vm endpoints, to vm (ie seda) I get the message about the direct endpoint(s) no longer existing. Changing back

Re: blueprint + myBatis + transactions

2015-03-24 Thread Claus Ibsen
On Tue, Mar 24, 2015 at 9:56 AM, Willem Jiang wrote: > camel-mybatis component is out of date, if you still want to use it, you may > consider to submit a patch for it. We are always welcome the contribution. > MyBatis project still uses the ibatis package name in their releases. https://github.

Re: JMX objectname of processors MBeans

2015-03-24 Thread Claus Ibsen
Your class should extend ServiceSupport On Tue, Mar 24, 2015 at 9:42 AM, blommish wrote: > Hi, > > I have a Processor defined as the following, > > @ManagedResource(description = "Wiretap value") > public class WiretapValue implements Processor { > > But to actually be able to see this in Jconsol

Re: Safely copy exchange body

2015-03-24 Thread Niels
Hey Claus, I already feared there wasn't a generic way. Thanks for confirming it. -- View this message in context: http://camel.465427.n5.nabble.com/Safely-copy-exchange-body-tp5763551p5764691.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Possibility of jdbc component when performing a select to return a map

2015-03-24 Thread angelo.rlcosta
Thanks alot Antoine. Best Regards, Ângelo Costa On Mon, Mar 23, 2015 at 9:57 AM, Antoine DESSAIGNE [via Camel] < ml-node+s465427n5764632...@n5.nabble.com> wrote: > Hi Angelo, > > First in groovy you don't need to explicitly call the 'get' method on > Maps. > Second, you'll have to use the exch

Re: JMX objectname of processors MBeans

2015-03-24 Thread blommish
That does not help as I can see it. What I would like to do is to set the ID, since the objectName=...name="bean-2", the name is the ID -- View this message in context: http://camel.465427.n5.nabble.com/JMX-objectname-of-processors-MBeans-tp5764684p5764696.html Sent from the Camel - Users mail

Re: JMX objectname of processors MBeans

2015-03-24 Thread Claus Ibsen
Set the id in the route .bean(xxx).id("myNameHere") On Tue, Mar 24, 2015 at 2:48 PM, blommish wrote: > That does not help as I can see it. > > What I would like to do is to set the ID, since the > objectName=...name="bean-2", the name is the ID > > > > -- > View this message in context: > http

Apache camel monitor activemq

2015-03-24 Thread Jonasty
How do I do that? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-camel-monitor-activemq-tp5764703.html Sent from the Camel - Users mailing list archive at Nabble.com.

Setting up CamelContext with Guice

2015-03-24 Thread Jakub Kotowski
Hi, how do I setup CamelContext when I use Guice with the guiceyfruit JNDI provider? I followed this guide: http://blog.timmattison.com/archives/2014/10/27/building-apache-camel-applications-with-guice/ Doing for example this: InitialContext context = new InitialContext(); CamelContext camelCon

SFTP connection issue with private key

2015-03-24 Thread yeandone
Hi, Claus, Willem, and Camel friends, I am writing a camel route that connects to, logs into and polls files from a SFTP location with private key file. But when the application was deployed to server and ran for the first time, it threw the following the exception below. But when the app ran aga

Consumer Polling Retry Issue

2015-03-24 Thread yeandone
Hi, Camel friends. I am trying to poll files from a remote SFTP server. I am currently setting consumer.bridgeErrorHandler=true at the from URI. When it cannot connect the server, exception is thrown and caught by error handler. If I do not set consumer.bridgeErrorHandler=true, then when an err

setup FTP producer scenario

2015-03-24 Thread jamiro
I want to achieve the following producer endpoint behaviour with FILE/FTP component: step #1: upload to myfile.tmp (if it's already there: append to it) step #2: try to rename myfile.tmp to myfile.dat when done (ignoring any errors if myfile.dat already exists) I tried with configuration fileName

Consumer Polling Retry Issue

2015-03-24 Thread lye
Hi, Camel friends. I am trying to poll files from a remote SFTP server. I am currently setting consumer.bridgeErrorHandler=true at the from URI. When it cannot connect the server, exception is thrown and caught by error handler. If I do not set consumer.bridgeErrorHandler=true, then when an erro

Re: SFTP connection issue with private key

2015-03-24 Thread lye
Hi, Claus and Willem. Do you have any ideas? Any help will be appreciated! -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-connection-issue-with-private-key-tp5764665p5764706.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HDFS2 Component and NORMAL_FILE type

2015-03-24 Thread Sergey Zhemzhitsky
Hello, Really interesting question. The answer is this jira issue: https://issues.apache.org/jira/browse/CAMEL-4555 and this diff: http://mail-archives.apache.org/mod_mbox/camel-commits/201110.mbox/%3c20111022140442.94f362388...@eris.apache.org%3E It would be really great if 1. the component wil

Re: HDFS2 Component and NORMAL_FILE type

2015-03-24 Thread Josef Ludvíček
Hi, related to hdfs2 and normal file, you might find, that camel sends message per data chunk, NOT message per file (which I would expect). They probably don't intent to change it. It was reported as bug https://issues.apache.org/jira/browse/CAMEL-8040 (won't fix) and as doc enhancment https://

Re: HDFS2 Component and NORMAL_FILE type

2015-03-24 Thread Josef Ludvíček
Hi, related to hdfs2 and normal file, you might find, that camel sends message per data chunk, NOT message per file (which I would expect). They probably don't intent to change it. It was reported as bug https://issues.apache.org/jira/browse/CAMEL-8040 (won't fix) and as doc enhancment https://

Re: HDFS2 Component and NORMAL_FILE type

2015-03-24 Thread Sergey Zhemzhitsky
>> sends message per data chunk Interesting... and a little bit confusing... Looked through the source code and it seems that what the component is really intended to do is to send the message on the per record basis, but not on the per chunk basis. In case of per record basis - the simplest way

IncompatibleClassChangeError

2015-03-24 Thread jburford
Hello. I have an application which uses Camel 2.14.0, ActiveMQ 5.10.0 and Spring 3.1.2. When the application is shutdown, I get this exception which prevents many of my PreDestroy methods on my beans from getting called: Exception in thread "Thread-1" java.lang.IncompatibleClassChangeError

Re: IncompatibleClassChangeError

2015-03-24 Thread Willem Jiang
Camel 2.14.x is built with Spring 3.2.x, I think you may need to upgrade the Spring version for it. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March 25, 201

Re: Camel-Restlet 2.15.0 setting up SSL

2015-03-24 Thread Nazarii Kukhar
Hi Sandeep, I'm not sure there is an issue here (at least on camel side). Restlet server itself converts https request to http when invokes handle methods. If you getting 404 make sure your request path match your camel consumer configuration path. For example if you have configuration like: restl

Re: Consumer Polling Retry Issue

2015-03-24 Thread yeandone
Hi Claus and Willem Do you happen to have any ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Consumer-Polling-Retry-Issue-tp5764711p5764731.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SFTP connection issue with private key

2015-03-24 Thread yeandone
Hi, Camel Friends. Any ideas about the exception? -- View this message in context: http://camel.465427.n5.nabble.com/SFTP-connection-issue-with-private-key-tp5764710p5764732.html Sent from the Camel - Users mailing list archive at Nabble.com.

Write Collection of FixedLengthRecord to Flat File

2015-03-24 Thread jayram7
Hi, I have a List with the POJO annotated with @FixedLengthRecord and I am using But I am not able to write all the data to a flat file. I know that the csv format works in this case. -- View this message in context: http://camel.465427.n5.nabble.com/Write-Collection-of-FixedLengthRecord-

Re: Consumer Polling Retry Issue

2015-03-24 Thread Claus Ibsen
Hi At the documentation http://camel.apache.org/ftp2 There is a maximumReconnectAttempts option On Tue, Mar 24, 2015 at 7:18 PM, lye wrote: > Hi, Camel friends. > > I am trying to poll files from a remote SFTP server. I am currently > setting consumer.bridgeErrorHandler=true at the from URI.

Re: setup FTP producer scenario

2015-03-24 Thread Claus Ibsen
What version of Camel do you use? You may need to upgrade to have support for append On Tue, Mar 24, 2015 at 8:27 PM, jamiro wrote: > I want to achieve the following producer endpoint behaviour with FILE/FTP > component: > > step #1: upload to myfile.tmp (if it's already there: append to it) > st