Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-18 Thread Claus Ibsen
Hi Try with ctx.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, true); On Thu, Jul 18, 2013 at 7:07 AM, vinay vinay_samu...@yahoo.com wrote: Hi All, I am new to camel, here is what I am trying and is giving me exception. $groovy -v Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor:

Re: problem processing CSV to Database (camel-csv and camel-sql)

2013-07-18 Thread Claus Ibsen
Hi I think CSV unmarshal to a ListMap so you would need to turn that into a Map. camel:unmarshal camel:csv/ /camel:unmarshal transform simple${body[0]}/simple /transform On Thu, Jul 18, 2013 at 2:24 AM, vs.souza

Re: Replacing standalone client with generic one in cxf component

2013-07-18 Thread Willem jiang
Hi, What's the operation that your standalone client is invoking? If you know which operation your client should invoke, you can set it throughout the camel-cxf endpoint uri. If you want to change it dynamically, you can setup the message header per invocation. -- Willem Jiang Red Hat,

Re: Groovy script synchronized issue with 2.10.x and 2.11.x prevents camel groovy script for High Concurrenc

2013-07-18 Thread Willem jiang
The ScriptEngine evaluate method is not thread safe, I think you can use seda component to cache the request in the queue, then using one consumer to processing the groovy script. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Re: Groovy script synchronized issue with 2.10.x and 2.11.x prevents camel groovy script for High Concurrenc

2013-07-18 Thread Willem jiang
I think we can cache the ScriptEngine as a thread local variable, and we need to find a way to clean up these variables when the camel route is shutdown. So I just fill a JIRA[1] for it. [1] https://issues.apache.org/jira/browse/CAMEL-6559 -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: Message Processing Performance while splitting

2013-07-18 Thread Willem jiang
Hi , Camel is using java.util.Scanner for splitting the input stream by using token \n. So it makes sense that it is slower then using the BufferedReader to read the file. You can read the file yourself by implementing a customer splitter just like the ZipFile does[1]

Re: How to recover corrupted HawtDB files

2013-07-18 Thread Stefan Burkard
Hi Claus I'm using camel-hawtdb 2.9.6 and (according to the classpath) hawtdb 1.6. The fact that hawtdb has no recovery tools but I need to build them by myself is bad news to me. After all I use the great Camel framework to avoid building general-purpose functionality like this by myself. How

Work with Exchange.HTTP_QUERY

2013-07-18 Thread humayun0156
Hi, I've an url with query parameters which is dynamically generated. i don't know how many parameters there are. i want to hit the url and get the body. say my url looks like : http://myhost.com?name=xxxid=yyy it needs basic authentication. so i request Object object =

Re: File upload

2013-07-18 Thread jamalissimo
I moved the question to CXF forums and I also added solution http://cxf.547215.n5.nabble.com/Multipart-file-upload-td5730547.html -- View this message in context: http://camel.465427.n5.nabble.com/File-upload-tp5735172p5735840.html Sent from the Camel - Users mailing list archive at

Re: Work with Exchange.HTTP_QUERY

2013-07-18 Thread Willem jiang
There are two character of ?. Can you change the recipientList to .recipientList(simple(${body}authMethod=BasicauthUsername=userauthPassword=pass) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: Work with Exchange.HTTP_QUERY

2013-07-18 Thread humayun0156
Thanks it works. -- View this message in context: http://camel.465427.n5.nabble.com/Work-with-Exchange-HTTP-QUERY-tp5735839p5735842.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: jsf and apache camel

2013-07-18 Thread James Strachan
You could learn angularjs (instead of JSF) and camel together, which is way cooler and more fun - then hack on hawtio :) More below... On 17 July 2013 20:18, lassesvestergaard lassesvesterga...@gmail.com wrote: Hi all. I'm learning camel and jsf at the same time. What I want to do is to

Using a jpa endpoint with no entityClassName

2013-07-18 Thread fordm
Hi, The URI format for a jpa endpoint is: jpa:[entityClassName][?options] and according to Apache Camel:JPA http://camel.apache.org/jpa.html , for sending to the endpoint, the entityClassName is optional. So I would expect the following route to successfully persist a message (that contains

Re: problem processing CSV to Database (camel-csv and camel-sql)

2013-07-18 Thread vs.souza
Hello Claus... thank you very much. That worked like a charm. My best regards. Vinícius. -- View this message in context: http://camel.465427.n5.nabble.com/problem-processing-CSV-to-Database-camel-csv-and-camel-sql-tp5735821p5735852.html Sent from the Camel - Users mailing list archive at

invoking camel route

2013-07-18 Thread Tarun Kumar
Hi, I want to invoke camel route from java code. CamelContext doesn't seem to have any method to invoke route. Here is what my code looks like: @Autowired private CamelContext cc; public void testMethod() { System.out.println(cc.getRouteStatus(route1)); // prints true // how to invoke

Re: invoking camel route

2013-07-18 Thread Claus Ibsen
Hi See this page http://camel.apache.org/walk-through-an-example.html You can use a producer template to send a message to a Camel route from java code. On Thu, Jul 18, 2013 at 5:58 PM, Tarun Kumar agrawal.taru...@gmail.com wrote: Hi, I want to invoke camel route from java code.

Round Robin in Camel Routes

2013-07-18 Thread deepak_a
Hi, In my architecture I am using Jboss+ActiveMQ (integrated) and activeMQ. is it possible to have a camel route that does round-robin from one or more ActiveMQ queues? The round-robin I am trying to get is at the consumer end. This way my route can pull/consume messages at an even/constant

Hello World? Maybe not :)

2013-07-18 Thread Gershaw, Geoffrey
Hi All, I have the simplest problem that apparently I can't figure out. I've never used direct:start as an endpoint before and I can't seem to get it to work the way I would expect it to. My config is below . I would like the route to start and print hello world. Seems easy. What am I

Re: Round Robin in Camel Routes

2013-07-18 Thread andreas
Hi If you are asking whether you can have a route across 2 brokers, that is a definite yes. I didn't get the question behind your 2nd paragraph. Best rgds Andreas Sent from Samsung tabletdeepak_a angesh...@gmail.com wrote:Hi, In my architecture I am using Jboss+ActiveMQ (integrated) and

Re: Round Robin in Camel Routes

2013-07-18 Thread deepak_a
Hi, I was not clear in my earlier query. let me clarify. In my current architecture I have multiple routes set up. Each route has has a unique 'from' point and a 'to' end point (that is common for all routes) e.g. Route 1: From: MQ-Queue;To: inbound.Queue (in activeMQ) Route 2: From: FTP;

Re: Hello World? Maybe not :)

2013-07-18 Thread Claus Ibsen
Hi I suggest to take a look at this page http://camel.apache.org/walk-through-an-example.html The direct component is here http://camel.apache.org/direct And if you just want to print hello world once or every X period then you can use a timer in the route http://camel.apache.org/timer And I

Achieving Concurrency using a Load Balancer

2013-07-18 Thread Edwin
Hi Folks, I'm wondering if it is possible to achieve concurrency when using a load balancer without using queues? Thanks, Edwin -- View this message in context: http://camel.465427.n5.nabble.com/Achieving-Concurrency-using-a-Load-Balancer-tp5735862.html Sent from the Camel - Users mailing

RE: Hello World? Maybe not :)

2013-07-18 Thread Gershaw, Geoffrey
Hi Claus, Embarrassingly, I've used camel for quite some time. Always with quickfixj or jms with the spring config. I never had to kick things off. When I look at the examples, they look like mine. Shouldn't this be it? camel:route id=loginRoute camel:from

Re: Round Robin in Camel Routes

2013-07-18 Thread Andreas Gies
Still kind of confused ;) If I understand correctly you have 3 inbound routes from different locations all of which point to a Active MQ Queue. If you have only one consumer the messages will be processed in the order they arrive in the queue (wellŠin the simplest case) regardless where they

Re: Hello World? Maybe not :)

2013-07-18 Thread Andreas Gies
Hmmm Looks good enough to me. Is there any error message to share ? Which version of Camel are you using ? If you are willing to post your route I can drop it in my IDE tomorrow Š. Regards Andreas Am 7/18/13(29) 7:12 PM schrieb Gershaw, Geoffrey unter geoffrey.gers...@credit-suisse.com:

How to use hawtio with Camel web app?

2013-07-18 Thread Chris Wolf
I would like to use hawtio's Camel route diagram view for inspecting and displaying routes. http://hawt.io/getstarted/index.html Since the app will be deployed in a private Intranet, I tried their offline WAR:

Re: Hello World? Maybe not :)

2013-07-18 Thread Raul Kripalani
Hey Geoffrey, A stacktrace would help us help you ;-) Where and how are you deploying this route? Apache ServiceMix? Tomcat, JBoss, etc.? And is there another Camel route or a unit test publishing to the direct endpoint? Bear in mind that a direct consumer doesn't listen on an external

Re: How to use hawtio with Camel web app?

2013-07-18 Thread James Strachan
On 18 July 2013 18:46, Chris Wolf cwolf.a...@gmail.com wrote: I would like to use hawtio's Camel route diagram view for inspecting and displaying routes. http://hawt.io/getstarted/index.html Since the app will be deployed in a private Intranet, I tried their offline WAR:

Re: Using a jpa endpoint with no entityClassName

2013-07-18 Thread Bilgin Ibryam
Hi Martin, just use dummy class name (like jpa://foo ) and make sure the message body contains one or many entity instances Bilgin On 18 July 2013 16:37, fordm ford.j.mar...@gmail.com wrote: Hi, The URI format for a jpa endpoint is: jpa:[entityClassName][?options] and according to

RE: Using a jpa endpoint with no entityClassName

2013-07-18 Thread cyrille.eloundou
®®±³µ¥£¢Úàõøüÿ -Original Message- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: Thursday, July 18, 2013 3:22 PM To: users@camel.apache.org Subject: Re: Using a jpa endpoint with no entityClassName Hi Martin, just use dummy class name (like jpa://foo ) and make sure the message

Re: How to use hawtio with Camel web app?

2013-07-18 Thread Chris Wolf
Thanks for getting back to me. This didn't work - the first problem was an incompletely declared WEB-INF/web.xml root element, which I fixed, What change did you make? Any chance of a pull request or at least a gist of the latest version? :) It was very minor. I think it it fails because

Re: Achieving Concurrency using a Load Balancer

2013-07-18 Thread Christian Müller
Yes, take a look at the following unit test [1]. It use the thread() DSL to use a thread pool for parallel processing. [1]

Re: Ftp connection through SOCKS Proxy.

2013-07-18 Thread ninadmnaik
Thanks Willem ! The NET-468 patch was released as a part of the issue: https://issues.apache.org/jira/browse/NET-468 I guess the ticket is still open because they might need some more unit tests. I modified camel-fTP component to support setting the proxy object as well as setting up

RE: Hello World? Maybe not :)

2013-07-18 Thread Gershaw, Geoffrey
I'm running this in a standalone java app using Spring. Its camel 2.11. I was under the impression from the various samples that I have seen that the below route should start and print Hello World without publishing a message to this route. Like a main class in java. Am I wrong? I am using

Camel in Openshift

2013-07-18 Thread wcpolicarpio
Hi Everyone, Is there a Camel quickstart that can be deployed in openshift? Thanks, Walter -- View this message in context: http://camel.465427.n5.nabble.com/Camel-in-Openshift-tp5735877.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Hello World? Maybe not :)

2013-07-18 Thread Raul Kripalani
Direct is used to link routes, such that one Camel route can call another directly without resorting to any external protocols. You want to use the Timer component instead, as you rightly noticed already. HTH, Raúl. On Thu, Jul 18, 2013 at 11:37 PM, Gershaw, Geoffrey

Re: invoking camel route

2013-07-18 Thread Tarun Kumar
Hi Claus, My camelContext has 1 route. From testMethod, i dont want to send any body or headers. i just want to invoke route1 from this method. On Thu, Jul 18, 2013 at 9:33 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi See this page http://camel.apache.org/walk-through-an-example.html

Re: How to use hawtio with Camel web app?

2013-07-18 Thread James Strachan
On 18 July 2013 20:51, Chris Wolf cwolf.a...@gmail.com wrote: Thanks for getting back to me. This didn't work - the first problem was an incompletely declared WEB-INF/web.xml root element, which I fixed, What change did you make? Any chance of a pull request or at least a gist of the