Re: How to improve efficiency with Camel?

2014-02-24 Thread Henryk Konsek
Hi, > The efficiency problem is that all of this is done by a single Java thread. > Thus if I have many sources, there is a huge bottleneck. By default each consumer should generate incoming messages in the separated thread. If you consume from two data source in two separated routes, each of the

How to set List in setBody (Blueprint DSL)

2014-02-24 Thread nono
Dear All, I need to pass a List or some strings in setBody, Any hints will be more than welcome! list just contains two strings for example "userid", "password" start -- View this mes

Camel - TestNG and Spring 4

2014-02-24 Thread blacar
Hello, We've found a problem using Camel - TestNG and Spring4. The error states that interface org.springframework.test.context.TestContext was found, but class was expected. This seems to be that TestContext was a class on Spring < 4 but now it is an interface and Camel-Testng module maybe has

Re: How to improve efficiency with Camel?

2014-02-24 Thread pmp.martins
You are correct, about your statement, I have just realized that the images are outdated. Since I am using Google Docs Drawing tool and since I am feeding this post with a direct URL I assumed that the images would be updated directly. Obviously I messed up and I apologize for the confusion. The

Re: Camel netty response is trimied for large data

2014-02-24 Thread bulutoprak
Hi, For the last 1 week, I am trying to fix this problem.I want to summarize what I did My problem is in karaf 2.2.5 with camel 2.9.0. 1) To generate the problem, I have added a new route with another port. This route first gets a number to generate a dummy response with given number of chara

Re: Camel netty response is trimied for large data

2014-02-24 Thread Claus Ibsen
Hi Try with Karaf 2.3.x - that is a very stable branch and used in production. This is also the version Camel 2.12.x is tested against. On Mon, Feb 24, 2014 at 1:30 PM, bulutoprak wrote: > Hi, > For the last 1 week, I am trying to fix this problem.I want to summarize > what I did > My problem

Re: How to set List in setBody (Blueprint DSL)

2014-02-24 Thread Claus Ibsen
You can define a or with the list of strings. And then refer to that in using ${ref:myList} where myList is the id of the or On Mon, Feb 24, 2014 at 11:42 AM, nono wrote: > Dear All, > > I need to pass a List or some strings in setBody, Any hints will be more > than welcome! > list jus

Re: Camel - TestNG and Spring 4

2014-02-24 Thread Christian Müller
There is an open ticket to support Spring 4. It's not supported at present. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mu

Re: Camel - TestNG and Spring 4

2014-02-24 Thread David Karlsen
Yeah - you can track this: https://issues.apache.org/jira/browse/CAMEL-7074(which was created ti address exactly the issue you mention). 2014-02-24 16:58 GMT+01:00 Christian Müller : > There is an open ticket to support Spring 4. It's not supported at present. > > Best, > > Christian > -

Use activemq connection pool without spring?

2014-02-24 Thread Rural Hunter
Hi, I read the activemq component doc here: http://camel.apache.org/activemq. It desribes how to use connection pool with Spring support. Is it possible to use this connection pool without Spring? I didn't find anything about this in the doc.

Builder constant unable to get the headers

2014-02-24 Thread jay
Hi Viewers, Can some one point me what is going wrong here as i am unable to get the headers in the body. but it is logging out in the log. .log("CorrelationID" + simple("${in.header.correlationID}") ) --> i can see the correlationID in log. .setBody(Builder.constant("please find the " + simple("

Re: Builder constant unable to get the headers

2014-02-24 Thread Claus Ibsen
Just use simple only setBody(simple("Bla bla ${header.foo} more bla bla")) On Mon, Feb 24, 2014 at 11:03 PM, jay wrote: > Hi Viewers, > > Can some one point me what is going wrong here as i am unable to get the > headers in the body. but it is logging out in the log. > > .log("CorrelationID" + s

TimeToLive property not working in case of DynamicRouter

2014-02-24 Thread abhijeet.bongarde
Hi, I am trying to implement TimeToLive for the topic messages using camel router. I have two types of topics one is declared through camel.xml and other is using DynamicRouter.java Here is the code snippet for reference: code in camel.xml: <

JDBC Connection object in Camel Processor

2014-02-24 Thread contactreji
Hi I am trying to do a database operation inside a Processor class. I have a code *private static Connection createConnection() { Connection conn=null; try { Class.forName("com.mysql.jdbc.Driver");

How to copy files from one directory to another within the same ftp server.

2014-02-24 Thread skasish
How to copy files from one directory to another within the same ftp server. ftp |__MF |__GT I wat to copy the files from MF to GT. How is it possible. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-copy-files-from-one-directory-to-another-within-the-same-ftp-serv

Re: Use activemq connection pool without spring?

2014-02-24 Thread Claus Ibsen
Hi Yeah you can setup the pooling using java code. The unit tests of camel-jms does that etc. https://github.com/apache/camel/blob/master/components/camel-jms/src/test/java/org/apache/camel/component/jms/CamelJmsTestHelper.java On Tue, Feb 25, 2014 at 2:58 AM, Rural Hunter wrote: > Hi, > > I

Re: JDBC Connection object in Camel Processor

2014-02-24 Thread Claus Ibsen
Hi You can lookup a bean in the registry from exchange Object myBean = exchange.getContext().getRegistry().lookup("someName"); When you use Class.forName("com.mysql.jdbc.Driver"); in OSGi then you need to have com.mysql.jdbc in your import package in the MANIFEST.MF file, for it to work in OS