RE: File transfer using ftp failed

2013-02-05 Thread AMARNATH, Balachandar
HI Claus Ibsen, Thanks for the information. But then, I have the following jars in classpath but still I am facing the same error, camel-ftp-2.9.2.jar camel-core-2.10.3.jar slf4j-api-1.6.6.jar jsch-0.1.38.jar commons-net-3.2.jar: commons-net-3.2-sources.jar regards Bala -Original Message

Re: File transfer using ftp failed

2013-02-05 Thread Claus Ibsen
On Tue, Feb 5, 2013 at 9:11 AM, AMARNATH, Balachandar wrote: > HI Claus Ibsen, > > Thanks for the information. But then, I have the following jars in classpath > but still I am facing the same error, > > > camel-ftp-2.9.2.jar > camel-core-2.10.3.jar > slf4j-api-1.6.6.jar > jsch-0.1.38.jar > commo

Re: Event Driven Use Case

2013-02-05 Thread Henryk Konsek
> 1. How can I implement the state saving and reconstructing using memento in > a generic way without serialization? If you can probably narrow the generic requirements of your messages to structure similar to the one below: class MessageState(correlationId String, metaDataCsv: String) Storing f

RE: File transfer using ftp failed

2013-02-05 Thread AMARNATH, Balachandar
Nope.. I have updated to camel-ftp-2.10.3.jar but still the issue is persisting ! -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: 05 February 2013 13:44 To: users@camel.apache.org Subject: Re: File transfer using ftp failed On Tue, Feb 5, 2013 at 9:11 AM, AMAR

Re: camel-hazelcast & Transactions

2013-02-05 Thread xanko
Thanks for your answers. Romain, I tried with jca adaptor but my problem always exist, the method "delete" of my MapStore is invoked before the end of my route. I configured tomee.xml with the tag and it's ok, my adaptor is deployed (Cf below) INFO: Configuring enterprise application: C:\Dev\a

Re: camel-hazelcast & Transactions

2013-02-05 Thread xanko
Good question... I added in my spring configuration and I thought it was sufficient for Camel to connect himself to tomee transaction manager. Apparently no but all information that I found on Camel website concerned Jms or Database transaction manager. Moreover, I didn't find information abo

Re: Camel and file handling

2013-02-05 Thread KramKroc
I played around with this a bit more and the reason that the file cannot be displayed is because the file of course is being compressed. I updated my last sample route from my previous query to add the Content-Encoding of gzip to the Processor I created: import java.io.File; import java.util.Map;

Client acknowledgement support of Camel JMS component

2013-02-05 Thread gilboy
Hi It appears using the client ack mode of the JMS component that the message will get de-queued if the route which consumes the message completes without throwing an exception. In my use case, my route consumes messages from a JMS topic and aggregates them using the aggregator EIP with a comple

[2.9.5] body=null after onException(_).handled(false)

2013-02-05 Thread Alex Anderson
I have a route that looks like so: onCompletion().onFailureOnly().beanRef('myBean', 'handleFailed') from('seda:asdf') .onException(SpecificException) .beanRef('myBean', 'handleSpecificException') .handled(false) .end() .dynamicRouter('myB

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-02-05 Thread panzerhans
I've been able to work a bit more on this topic. Here is what is happening. The exchange headers used in the Camel part propagates into HTTP headers. I wasen't aware of this. Websphere is very strict about the content of the headers and a data object that I was using carried an illegal sequence i

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-02-05 Thread Claus Ibsen
You can remove the unwanted headers. On Tue, Feb 5, 2013 at 2:09 PM, panzerhans wrote: > I've been able to work a bit more on this topic. Here is what is happening. > > The exchange headers used in the Camel part propagates into HTTP headers. I > wasen't aware of this. > > Websphere is very stri

Mocking an endpoint in a blueprint that contains a property placeholder

2013-02-05 Thread Martin Ford
Hi, I have a simple blueprint route that uses camel-mail to send an email. The protocol (i.e. component), host and port are set up as property placeholders: When deployed to Fuse ESB the blueprint containing this route works fine. My problem comes when trying to mock the to e

Re: Mocking an endpoint in a blueprint that contains a property placeholder

2013-02-05 Thread Claus Ibsen
On Tue, Feb 5, 2013 at 3:18 PM, Martin Ford wrote: > Hi, > > > > I have a simple blueprint route that uses camel-mail to send an email. The > protocol (i.e. component), host and port are set up as property > > placeholders: > > > > > > > > > > > > > > When deployed to Fuse ESB the bluepri

Re: [2.9.5] body=null after onException(_).handled(false)

2013-02-05 Thread Henryk Konsek
Hi Alex, > When myBean.slip() throws SpecificException, If I print in.body in > handleSpecificException(), I can see that it is not null. > > If I print it again in handleFailed() it is now null. Actually I can't reproduce this problem neither under Camel 2.9.5 nor under Camel 2.10.1. Here is my

Re: Camel direct component

2013-02-05 Thread Henryk Konsek
Hi Jothi, > Could anyone please let me know of a > practical example where the direct component would be a good fit? As a addition to what Willem wrote I would mention "abstraction". If you work on big Camel project spread across independent development teams, you can define contracts between ro

Re: camel-hazelcast & Transactions

2013-02-05 Thread xanko
If I use directly the transactionManager of TomEE, the problem is the same :/ I don't see where looking for now... Maybe I will find another day Thank for your help -- View this message in context: http://camel.465427.n5.nabble.com/camel-hazelcast-Transactions-tp5726943p5726980.html Sent from

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-02-05 Thread panzerhans
Yes, I removed the header, and that works fine. However carrying all exchange headers over to HTTP headers makes it very difficult to carry over "route payload" if the CXF endpoint was not the last endpoint. However, I am getting the feeling it is not going to be easily possible to respond back t

Reference OSGI Blueprint java.util.Properties service in Blueprint Camel property placeholder

2013-02-05 Thread CharlieD
I want to have centralized shared properties (shared across camel contexts) to define things, particularly ActiveMQ endpoints. Furthermore, I want to avoid using /etc/custom.properties, unless I'm unaware of a refresh mechanism that doesn't require restarting karaf and therefore all bundles. A poin

Quickfix component as initiator - How do I insert user and password to logon

2013-02-05 Thread pvenini
Hi, Im trying to create a system that converts http messages to Fix messages to send to an Exchange (my systems acts as the initiator). What I cannot figure is how I can insert user and password fields to FIX's Logon message (or for that matter, how can I start the FIX connection on demand). I tri

RE: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-02-05 Thread Christian Müller
Still on my to do list... Sent from a mobile device Am 05.02.2013 00:07 schrieb "Patel, Gaurav" : > Was anyone able to reproduce? > > I've run the scenario on ServiceMix, Karaf + Camel and FuseESB (linux and > windows) all to the same effect: no key spec. I've even tried installing > Bouncy Cast

Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-05 Thread Christian Müller
Can you configure it in the quickfix config? Sent from a mobile device Am 05.02.2013 19:59 schrieb "pvenini" : > Hi, Im trying to create a system that converts http messages to Fix > messages > to send to an Exchange (my systems acts as the initiator). What I cannot > figure is how I can insert u

Re: Camel direct component

2013-02-05 Thread Hadrian Zbarcea
Hi Jothi, A direct: endpoint provides a synchronous, in memory call which is probably the simplest, most basic way in which two endpoints could communicate. In real life endpoints almost never share the memory space, right? So the answer to your question revolves around those usecases where t

Re: Error invoking restful webservice

2013-02-05 Thread Raul Kripalani
Check the casing of your CXF bean ids. Spring is case sensitive. On 5 Feb 2013 20:41, "Hariprasath Manivannan" wrote: > Hi, > > I am having the followig end points > > > http://www.springframework.org/schema/beans"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xmlns:cxf="http://came

Configuring SSL for CXF-RS consumers in Camel

2013-02-05 Thread Martin Stiborský
Hello guys, just a quick question, because, I'm a little bit lost… What is the preffered way to configure SSL for REST interface in Camel project? I'm using CXF-RS and so far, sending requests via http was good enough, but now it gets more serious and I need https… I have found that one possibili

Re: RestFul service using camel

2013-02-05 Thread Christian Müller
Something like this: https://github.com/muellerc/camel-in-daily-use/blob/master/part-2/src/main/java/org/apache/cmueller/camel/sus/cidu/part1/PrepareRestRequest.java Best, Christian On Tue, Feb 5, 2013 at 5:56 AM, Richa wrote: > Thank you for your reply. But can you please help me with a sample

Re: Reference OSGI Blueprint java.util.Properties service in Blueprint Camel property placeholder

2013-02-05 Thread Willem jiang
Hi, As Camel property placeholder supports to lookup the Properties from the bean reference with the prefix "ref:BeanId", I think you just need to add a reference of the property service in the camel route bundle. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://

Re: Transforming large mainframe file

2013-02-05 Thread Gvvenkat
Thanks a lot. It helped lot. I found a help on how to improve the speed also. http://www.catify.com/2012/07/09/parsing-large-files-with-apache-camel/ But, I am unable to convert this into Spring DSL. Any help will be greatly appricated.. Here is my equivalent JAVA DSL from("file:F:/EbcConv

sftp - NoSuchMethodError ...SftpConsumer.isValidFile

2013-02-05 Thread guillermo.flores
Hi, i'm testing the SFTP/FTP over multiple operting systems, when I test it on a Linux RH 5.0 i'm getting an exception. Don't understand what is wrong. Could you help me? The exception i'm getting is: +++ [ - sftp://root@1

Re: sftp - NoSuchMethodError ...SftpConsumer.isValidFile

2013-02-05 Thread Willem jiang
It looks like you are using different version of camel-core and camel-ftp. Can you check those jars version in you class path ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://w

Re: Java DSL vs Spring Dsl with Splitter and Aggregator

2013-02-05 Thread Willem jiang
Can you put the after the ? The aggregator should be done after the split. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Exception in restful web service

2013-02-05 Thread Richa
Hi, I have a restful webservice that I am invoking using camel-cxf. I want to call a particular function on the server. I can call the server but I am getting the following exception while processing: org.apache.cxf.jaxrs.client.ClientWebApplicationException: .No message body reader has been foun

Re: Java DSL vs Spring Dsl with Splitter and Aggregator

2013-02-05 Thread Willem jiang
Hi, I'm not sure why you are using the mock endpoint. Can you just change the aggregate part like this ? Exchange.FILE_NAME_ONLY -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.c

Re: Exception in restful web service

2013-02-05 Thread Willem jiang
Can you access the service with simple http get request? For the Exception I look like the client has some trouble to read the message. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (

Error handling - Want to send emails on errors

2013-02-05 Thread manglu
Hi, I am new to Camel and slowly coming to terms with it. I want a custom error handler so that i does the error mapping (code, description etc) and return custom messages back to the clients. As part of this i want to send emails to admin with the error information. I noticed threads where slo

Re: Exception in restful web service

2013-02-05 Thread Richa
Thank you for the reply Willem. Yes, I can access the rest service with simple get request. If I type the url for accessing the function in the browser, I get the output on the browser window. But in this case, my function is accessed ( I have a sysout in the function which tells me that the functi