Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

2011-12-02 Thread geemang
Done! https://issues.apache.org/jira/browse/CAMEL-4737 This is my first patch hopefully I did it correctly. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-option-in-Camel-netty-udp-consumer-server-tp3364136p5043162.html Sent from the Ca

Re: Extra Request Params sent in camel HTTP component(GET request)

2011-12-02 Thread suman
Hello Iam using v2.8.2.Do I need to upgrade any further? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Extra-Request-Params-sent-in-camel-HTTP-component-GET-request-tp5042808p5042889.html Sent from the Camel - Users mailing list archive at Nabble.com.

Velocity without java

2011-12-02 Thread MichaelAtSAG
The Apache Camel example for Velocity using Java code to implement the logic. Is there an example available that does not use java? We are trying to use a Spring XML approach and cannot figure out how to connect the message properties into the velocity template. -Velocity template:- Dear Purchas

Velocity without java

2011-12-02 Thread MichaelAtSAG
The Apache Camel example for Velocity using Java code to implement the logic. Is there an example available that does not use java? We are trying to use a Spring XML approach and cannot figure out how to connect the message properties into the velocity template. -Velocity template:- Dear Purchas

Re: Extra Request Params sent in camel HTTP component(GET request)

2011-12-02 Thread Claus Ibsen
On Fri, Dec 2, 2011 at 7:20 PM, suman wrote: > Hello All, > Iam using camel http4 component and trying to set timeout.Given below is the > URL. > > https4://server.com/api/close.json?appid=3&httpClient.soTimeout=1&httpClient.connectionTimeout=1 > > It seems like the config parameters are a

Extra Request Params sent in camel HTTP component(GET request)

2011-12-02 Thread suman
Hello All, Iam using camel http4 component and trying to set timeout.Given below is the URL. https4://server.com/api/close.json?appid=3&httpClient.soTimeout=1&httpClient.connectionTimeout=1 It seems like the config parameters are also sent to end server.Is there any way to avoid sending t

Re: Camel XSLT Component - Load XSLT from database

2011-12-02 Thread mccabejj
Thanks Claus. I will give it a try when I get a breather and I'll report back. The project is barrelling along! Josh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XSLT-Component-Load-XSLT-from-database-tp5033499p5042751.html Sent from the Camel - Users mailing list a

Re: Camel XStream works with Spring but not with Aries

2011-12-02 Thread dfontaine
Hi Ioannis ! I tried with Camel 2.7.3. The route works fine on 2.8.3 without XStream xstream = new XStream(); xstream.setClassLoader(getClass().getClassLoader()); XStreamDataFormat xstreamDataFormat = new XStreamDataFormat(xstream); Thanks a lot Damien -- View this message in context: http:/

Re: TypeConverter GenericFile to InputStream

2011-12-02 Thread bvahdat
Hi, that's already in place since the 2.8.x & 2.7.x branches, see [1] and [2]. [1] https://issues.apache.org/jira/browse/CAMEL-3962 [2] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConverter.java Babak -- View this message in c

TypeConverter GenericFile to InputStream

2011-12-02 Thread ychawla
Hello All, It looks like in Camel 2.6.0 there is no TypeConverter from GenericFile to InputStream. It is easy enough to get an InputStream from a GenericFile: Object body = exchange.getIn().getBody(); InputStream inputStream = null; if (body instanceof GenericFile) { GenericFile file = (GenericFi

Re: Camel XStream works with Spring but not with Aries

2011-12-02 Thread Ioannis Canellos
Hi Damien, which version of camel are you using? I created an blueprint integration test using camel 2.9 (using exaclty your use case) and it works fine. Can you please try with the current trunk? -- *Ioannis Canellos* * FuseSource ** Blog: http://iocanel.blogspot.com **

Re: Riding on org.apache.camel.language.TokenPairPredicateTest

2011-12-02 Thread bvahdat
BTW, on the CI-Servers the test passed by the last build [1], so that maybe it could be an OS issue as well. [1] https://builds.apache.org/job/Camel.trunk.fulltest/org.apache.camel$camel-core/576/testReport/org.apache.camel.language/TokenPairPredicateTest/ Babak -- View this message in context:

Re: Camel under OSGi without Spring et al.

2011-12-02 Thread metatech
Hi, I have more information about the problem. The method "start" of the class "org.apache.camel.impl.osgi.Activator" terminates immediately, after registering a callback ("BundleTracker") to be notified when the bundle enters the "Active" state in the OSGi point of view. However, the Camel initia

Riding on org.apache.camel.language.TokenPairPredicateTest

2011-12-02 Thread bvahdat
Hi, today I had a chance to look @ the test failure I mentioned in [1], and my concern isn't really why the file renaming fails with the following log message: 2011-12-02 14:37:37,679 [e://target/pair] ERROR GenericFileOnCompletion - Caused by: [org.apache.camel.component.file.GenericFileO

Re: Body clipped after 1000 chars, total length is ????

2011-12-02 Thread focaldi
Hi, I solved my problem. Before, I was using "Select ID, MESSAGE_BODY From MYTABLE" but I changed it like it and it works : Select TO_CHAR(ID) ID, TO_CHAR(MESSAGE_BODY) MESSAGE_BODY From MYTABLE. I guess it is waiting String for columnt type. For your information -- View this message in context:

R: distributed transaction using JMS and EJB partecipants

2011-12-02 Thread Ronzat Luca
It's works. Thank you. Luca -Messaggio originale- Da: Filippo Balicchia [mailto:fbalicc...@gmail.com] Inviato: martedì 29 novembre 2011 12.40 A: users@camel.apache.org Oggetto: Re: distributed transaction using JMS and EJB partecipants Il 28 novembre 2011 12:06, Ronzat Luca ha scritto:

Body clipped after 1000 chars, total length is ????

2011-12-02 Thread focaldi
Hi, I need to get some data from database. But I I took this message. I tried to all ExchangePatterns. But it dosnt work. Pls help me. Thanks [Body clipped after 1000 chars, total length is 7850]]. Caused by: [org.springframework.jms.MessageFormatException - Only objectified primitive objects, St

Re: CSV to database

2011-12-02 Thread Christian Müller
It looks really odd for me... 1) You select the Customers twice (in your polling JPA endpoint and in your processor) 2) You create a new EntityManagerFactory each time the processor is called. All what you should have to do is: from("jpa://Customer") .process(new MyConverter()) .to("jpa://Cus

Re: Camel Osgi Component

2011-12-02 Thread Björn Bength
Hello, read this entire thread before using vm or seda component: http://camel.465427.n5.nabble.com/using-vm-with-different-camelContexts-and-property-parser-td5022731.html There seems to be some quirks about error and property handling. I'm not 100% sure, though, since I didn't read the latest

Re: How can I split resultset that come from database?

2011-12-02 Thread focaldi
Thanks my friend, I use "myroute.split(body())" and it works. Thanks both of you... -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-split-resultset-that-come-from-database-tp5041311p5041487.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CSV to database

2011-12-02 Thread Idriss
I solved the problem. I use this in my RouteBuilder: from("jpa:org.apache.camel.example.etl.Customer?consumeDelete=false&delay=3000&consumeLockEntity=false") .process(new CustomerTransformer()); And my processor looks like this : public void process(Exchange exchange) throws Ex

Re: How can I split resultset that come from database?

2011-12-02 Thread Claus Ibsen
On Fri, Dec 2, 2011 at 11:36 AM, Christian Müller wrote: > Use "split(body())". > Yes this will work if the message body is Iterateable, such as a Collection, Array, List etc. However if the body is a pure javax.sql.ResultSet then that API is not iterateable. You could add a custom type convert

Re: How can I split resultset that come from database?

2011-12-02 Thread Christian Müller
Use "split(body())". Best, Christian On Fri, Dec 2, 2011 at 11:02 AM, focaldi wrote: > Hi, I am trying to split a resultset. My Route runs a select sql in > database > after that it will send all resultset in a message. But I need to split the > resultset and send to queue row by row. Ho can I

How can I split resultset that come from database?

2011-12-02 Thread focaldi
Hi, I am trying to split a resultset. My Route runs a select sql in database after that it will send all resultset in a message. But I need to split the resultset and send to queue row by row. Ho can I do this? Thanks all -- View this message in context: http://camel.465427.n5.nabble.com/How-can-

Re: Endpoint exception

2011-12-02 Thread Claus Ibsen
On Thu, Dec 1, 2011 at 8:18 PM, tkatva wrote: > It's me again... > > I was wondering that if I have Route and I have defined onException-method > to catch all exceptions, like: > > routeDef.onException(Exception.class).Process(...Jaadi jaadi processing); It > does not catch exceptions happening in

Re: CSV to database

2011-12-02 Thread Claus Ibsen
On Thu, Dec 1, 2011 at 9:41 PM, Idriss wrote: > Now I have this error : > This is only a WARN. Can you try with Camel 2.8.3. > [che.camel.example.etl.Customer] ultPollingConsumerPollStrategy WARN > Consumer > Consumer[jpa://org.apache.camel.example.etl.Customer?consumeDelete=false&consumeLock

Re: Camel Osgi Component

2011-12-02 Thread m.jimen.blazquez
Hello, I'm not sure I have understood the process but it seems what I really need. Where can I find an example of this? regards -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Osgi-Component-tp3386193p5041128.html Sent from the Camel - Users mailing list archive at Nabb