Camel to ingest data more than 200 HTTP url endpoints

2014-11-05 Thread Vins Yu
Hi, I'm building an app that grabs DATA from dynamic URLs which can reach more than 200. I tried the following // this bean just generates dynamic url public void createUrls(Exchange exchange) { List list = new ArrayList(); for (int i = 0; i < 9; i++) { list.add("re

Re: Ack by the end of WS chain (client WS - [WS - Camel - client WS] - WS) *image inside

2014-11-05 Thread Henryk Konsek
Hi, > In other words, I'm wondering if the following is feasable: Sending status code after endpoint call is common practice. Looks fair for me :) . Cheers. -- Henryk Konsek http://henryk-konsek.blogspot.com

Support for CXF dispatch api in the latest release of camel

2014-11-05 Thread santosh das
Our application is already using its webservice engine as CXF via the dispatch api, Now we are evaluating to add camel to utilize its EIP capabilities and still yse CXF. I could find no documentation whatsoever for using Camel with CXF dispatch API. Any hep is highly appreciated in this regard.

Re: Ack by the end of WS chain (client WS - [WS - Camel - client WS] - WS) *image inside

2014-11-05 Thread chainbuck
In other words, I'm wondering if the following is feasable: SYSTEM CAMEL SYSTEM - data -> - data -> <- ack - <- ack – Here is what I don't want: SYSTEM CAMEL

Ack by the end of WS chain (client WS - [WS - Camel - client WS] - WS) *image inside

2014-11-05 Thread chainbuck
Hello all, Does this ack (OK Reply) at the end of the chain looks feasable to you? Thx. -- View this message in context: http://camel.465427.n5.nabble.com/Ack-by-the-end-of-WS-chain-client-WS-WS-Camel-client-WS-WS-image-inside-tp57

Re: Setting rest response json directly

2014-11-05 Thread Gary Kennedy
I'm using blueprint, but yes, it does not work. { "exception": "${exception.message}" } Produces response content of: "{ \"error\": \"${exception.message}\" }" Instead of: { "error": "${exception.message}" } I'm using the servlet/rest config, ie:

Re: Strange issue with JDBC add Postgres

2014-11-05 Thread Tim Dudgeon
On 05/11/2014 19:07, Claus Ibsen wrote: maxRowSize ??? do you mean fetchSize? Sorry, I mean maxRows (as in the example here: http://camel.apache.org/jdbc.html). So something like: .to('jdbc:myDataSoruce?outputType=StreamList&statement.fetchSize=100&statement.maxRows=1000') Also which ver

Re: Strange issue with JDBC add Postgres

2014-11-05 Thread Claus Ibsen
On Wed, Nov 5, 2014 at 6:46 PM, Tim Dudgeon wrote: > I'm encountering a strange problem with using the JDBC component with > Postgresql. > Postgresql by default fetches large result sets into memory. To avoid this > you need to use > statement.setFetchSize() > to make it use a cursor. > This works

Re: There is a problem with the dataFormat MESSAGE and an XSLT transformation?

2014-11-05 Thread aioria3077
thanks for your answer, had been stuck with this problem since few weeks ago, that's why he was trying in every possible way, but since it can resolve, a solution was put in the xslt, xpath full route from *soapenv:Envelope/soap:Body/.. * and the response was another proble

getting default value Connection: Keep-Alive in

2014-11-05 Thread ashwin74268
Hi , I am trying to connect to an external entity which does not support Persistent Connections. I tried to set the Connection:close Header in Exchange object but it appears to be getting filtered out by DefaultCXFBinding. I saw some post where it says the following HTTP Headers will be filtered be

Strange issue with JDBC add Postgres

2014-11-05 Thread Tim Dudgeon
I'm encountering a strange problem with using the JDBC component with Postgresql. Postgresql by default fetches large result sets into memory. To avoid this you need to use statement.setFetchSize() to make it use a cursor. This works fine in a simple Java example. But when I try to use it in C

Re: Camel-boot autowiring issue

2014-11-05 Thread Henryk Konsek
OK, I can see possible improvement for camel-spring-boot, as well as small misconfiguration in your project. I'll send more details later today. Stay tuned :) Cheers. On Wed, Nov 5, 2014 at 3:53 PM, Henryk Konsek wrote: > Hi, > >> Here is sample project I prepared to demonstrate the issue: > >

Calling a camel route seems to commit an outside transaction

2014-11-05 Thread Christian Schneider
I have an application running in OSGi that uses aries blueprint and aries jpa. My class A is marked as transactional in blueprint and uses an XA transaction. Inside such a transactional method from class A I - first create a persistent entity in the DB - then call a camel route using producer.

Re: Camel-boot autowiring issue

2014-11-05 Thread Henryk Konsek
Hi, > Here is sample project I prepared to demonstrate the issue: I will take a look it shortly. Thanks for reporting :) . Cheers. -- Henryk Konsek http://henryk-konsek.blogspot.com

Camel-boot autowiring issue

2014-11-05 Thread vasilievip
I see strange behavior when trying to use camel boot. When config class for camel creates beans (RoutesBuilder's) it does not see autowired fields - they are not initialized, but in @PostConstruct method they are getting initialized. When I add additional config file (see Boot2.java in my example)

Re: Camel Mina or Netty to read NMEA 0183 buffer

2014-11-05 Thread Jean-Baptiste Onofré
By the way, are you sure the 192.168.100.109 is a valid interface for the local machine ? Regards JB On 11/05/2014 10:49 AM, Morgan Hautman wrote: from("mina:tcp://192.168.100.109:1212?sync=true&textline=true").routeId("TCP_CONNECTION").setExchangePattern(org.apache.camel.ExchangePattern.InOnl

Re: Camel 2.15-SNAPSHOT dependency missing sources in repo

2014-11-05 Thread vasilievip
I see some snapshot sources now. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-15-SNAPSHOT-dependency-missing-sources-in-repo-tp5758495p5758541.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mina or Netty to read NMEA 0183 buffer

2014-11-05 Thread Jean-Baptiste Onofré
Can you try with mina2 instead of mina ? mina2:tcp://0.0.0.0:1212?sync=true&textline=true&textlineDelimiter=AUTO Try to put a bean or processor after the mina endpoint to see what you receive (before going to a JMS queue). You can find details here: http://camel.apache.org/mina2.html Regards

Re: Camel 2.15-SNAPSHOT dependency missing sources in repo

2014-11-05 Thread Willem Jiang
It looks the Jenkins deploy the projects twice.  I just did some change on the Camel.trunk.notest job of the Jenkins, now I just kicked another build, to see if the change works.   -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://j

Re: [ANNOUNCE] Apache Camel 2.13.3 Released

2014-11-05 Thread James Green
The [4] link below does not exist. The download page shows 2.13.3 but is linked to 2.13.2. On 1 November 2014 07:53, Christian Mueller wrote: > The Apache Camel project [1] is a powerful open source integration > framework based on known Enterprise Integration Patterns [2]. > > The Camel commun

Re: Rest DSL - how to configure SSL/Basic Auth for jetty component?

2014-11-05 Thread Claus Ibsen
Hi You can configure the jetty component regularly without the rest dsl, and just refer to jetty as the component. Then the Rest DSL uses the jetty with the security settings you have configured on it. And I think we have fixed the double ? in the uri in the upcoming 2.14.1 release. On Wed, Nov

Re: Camel 2.15-SNAPSHOT dependency missing sources in repo

2014-11-05 Thread vasilievip
There is still no sources for latest build only for previous one. I guess this has something to do with set of profiles enabled for "no tests" build and "all tests" build. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-15-SNAPSHOT-dependency-missing-sources-in-repo-

StackOverflowError on configuring JettyHttpComponents with handlers for the same port

2014-11-05 Thread Roman Vottner
We upgraded from Camel 2.13.0 to 2.14.0 a couple of days ago and noticed some problems during the upgrade. While we managed to fix certain issues with CXF based services in Camel (extending spring configurations didn’t work for us in 2.14.0 but using @Import({…}) does achieve the same), we notic

Re: Exception in the bean after onException

2014-11-05 Thread Vadim Vararu
Solved, it was an issue on the Throwable object, not a Camel one. Thanks. On Tue, Nov 4, 2014 at 9:27 AM, Vadim Vararu wrote: > Yes, that works, but as i've observed, i get this way only the cause > message, and not the whole stacktrace. > > On Mon, Nov 3, 2014 at 6:55 PM, Claus Ibsen wrote: >

Rest DSL - how to configure SSL/Basic Auth for jetty component?

2014-11-05 Thread Roman Vottner
This is a repost of the nabble forum entry as my account was obviously not correctly verified at the time when I posted this issue (post has NOT been accepted …). In order to test the new REST feature in 2.14.0 I created a simple route class: public class RestTestRoute extends RouteBuilder {

Re: Camel Mina or Netty to read NMEA 0183 buffer

2014-11-05 Thread Morgan Hautman
from("mina:tcp://192.168.100.109:1212?sync=true&textline=true").routeId("TCP_CONNECTION").setExchangePattern(org.apache.camel.ExchangePattern.InOnly).id("ExchangePattern").to("log:cLog_1?level=INFO").id("cJMSConnectionFactory1" + ":queue:netty")).id("jms"); javax.jms.ConnectionFactory jmsConnectio

Re: POJO to DB

2014-11-05 Thread Charlie Mordant
​​ Hi, Either you have to use a message converter (transforming you pojo to a key value hashmap): http://camel.apache.org/messaging-mapper.html Or you can use camel-jpa if it's a jpa entity. Regards, 2014-11-05 8:51 GMT+01:00 Router : > Hi, > > I have got a POJO which contains values for two se

Re: Camel Mina or Netty to read NMEA 0183 buffer

2014-11-05 Thread Willem Jiang
Can you share the camel route with us? I didn’t find anything wrong by going through the log you pasted. -- 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 November

Re: Camel 2.15-SNAPSHOT dependency missing sources in repo

2014-11-05 Thread Willem Jiang
I just kicked the CI build of Camel trunk, the deployment[1] is OK now. [1]https://builds.apache.org/job/Camel.trunk.notest/2212/ -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo

Camel Mina or Netty to read NMEA 0183 buffer

2014-11-05 Thread Morgan Hautman
Hello all, I'm trying to implement a endpoint who can read an NMEA 0183 buffer using TCP. I already tried to implement it using a codec ( https://code.google.com/p/cellengine/source/browse/trunk/engine_java/002_Engine_Server/mina/com/net/minaimpl/server/telnet/TelnetCodec.java?r=1198) but it requi