Re: Problem w. FTP producer and charset

2012-12-06 Thread Preben.Asmussen
Hi Willem I think the testcase is attatched as a zip. just run it and you will see that it fails under camel 2.9.3 and completes under 2.9.2 when you change the camel.version in the pom. The problem is that files don't get written in the correct charset even if you specify the charset on the file

OSGI Service reference in Camel Context

2012-12-06 Thread Sunil Pandit
Hi All , I am using FUSE ESB . I have a OSGI service registered in service registry and have a camel context which has a service reference . The service reference specifies an interface and a filter . Everything works fine when the filter has hardcoded value in the camel context route . Such as f

Re: I created a basic file-unzip camel component...

2012-12-06 Thread clarkcb
Hi Willem, My understanding is that the existing zip and unzip marshalling are for messages, not files. Please see this topic: http://camel.465427.n5.nabble.com/Zip-format-problem-td477268.html . Please correct me if I'm wrong

Re: I created a basic file-unzip camel component...

2012-12-06 Thread Willem jiang
camel already has a data format[1] which support to zip and unzip the date. I'm not sure if it can provide all the feature that you implement in file-unzip. Anyway, you can push your change to the github[2] to more people to review :) [1]http://camel.apache.org/zip-dataformat.html [2]https://gi

I created a basic file-unzip camel component...

2012-12-06 Thread clarkcb
I have created a basic file-unzip camel component that (probably unsurprisingly) extracts zip archives to a specified directory location. I'm wondering how I should go about submitting to the camel team for review and possible inclusion. -- View this message in context: http://camel.465427.n5.n

Re: Making Camel based middle layer available even when services are not

2012-12-06 Thread ucrkarthik
I have the following bundles installed: OPS4J Pax Url - mvn:org.ops4j.pax.url.mvn; singleton:=true OPS4J Pax Url - warorg.ops4j.pax.url.war; singleton:=true OPS4J Pax Url - wrap:org.ops4j.pax.url.wrap; singleton:=true Is that enfough? or do I have to install the pax-url-classpath bundle? Thansk

Re: Connecting to MS Exchanger Service using CXF

2012-12-06 Thread Willem jiang
If you are using spring to load the camel context, you could configure the authentication information like this[1] [1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport%28includingSSLsupport%29-BasicAuthentication -- Willem Jiang Red Hat, Inc. F

Re: Problem w. FTP producer and charset

2012-12-06 Thread Willem jiang
Can you tell us what's the issue that you meet? I don't quite understand you question. It could be more easy if you can show us a small test case. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blo

Re: Found a bug with camel-http4 !

2012-12-06 Thread Willem jiang
I'm looking into it and running the tests to avoiding regression failure. -- 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://

Re: transactions that span multiple routes

2012-12-06 Thread Willem jiang
Hi, You can consider to use the seda endpoint instead of direct endpoint in your consumeReadyQueue route. Then the transaction should be committed when the exchange is routed to seda endpoint. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

transactions that span multiple routes

2012-12-06 Thread erstanl
Here is the use case. 1) Consume message from ActiveMQ queue 2) Update database with data derived from step 1 3) Download rather large data from database 4) Process data from step 3 5) Update database with results from step 4 These routes represent that case (I think): Steps 1, 2

How can I have a byte[] return value from a camel CXF endpoint?

2012-12-06 Thread clarkcb
Hello, I've created a Camel CXF endpoint that receives an ArrayList of [java.io.File, byte[]] representing the File object and the file's contents, respectively. Here's the service endpoint method definition: public byte[] convertFile(File inputFile, byte[] inputArray) Here's my test route in Sp

Re: Test Intercept with adviceWith and http

2012-12-06 Thread Willem jiang
Hi, After digging the code which you shows to me, I found the cause of your issue. The http4 endpoint is created before the Http4Component is started, it is cause the NPE to make the test failed. It's not a bug of CamelTestSupport. I will commit a quick fix for it today. -- Willem Jiang Re

Re: Simple Expression With And Condition doesnt work in Camel 2.8

2012-12-06 Thread Christian Müller
What should ${noun} or ${verb} be? I suggest to have a look at our documentation: http://camel.apache.org/simple.html Best, Christian On Thu, Dec 6, 2012 at 1:34 PM, mail2bansi wrote: > Hello Group, > Here is the snippet from my camel-context.xml > > > ("${

Found a bug with camel-http4 !

2012-12-06 Thread lleclerc
Hi, Here is the TestClass exposing the working and the problematic test : http://pastebin.com/8VunWZgt Some optional parameters from camel-http4 will prevent the intercept from working correctly. Or is it just me not using the right tools to test my production route offline. Thanks, -- View

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-12-06 Thread Christian Müller
org.apache.activemq.pool.PooledConnectionFactory is also available in ActiveMQ 5.5.1. Best, Christian On Thu, Dec 6, 2012 at 2:45 PM, anaCortes wrote: > Hi Scott, > > thank you for your answer, it´s really interesting :) > > Then we should use PooledConnectionFactory and for that we need to upg

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-12-06 Thread Christian Müller
The test works also with CachingConnectionFactory and ActiveMQ 5.5.1. Could you update the test so that it will show your issue? Otherwise I'm not sure whether we can find and resolve your issue. Best, Christian On Thu, Dec 6, 2012 at 2:34 PM, anaCortes wrote: > Have you tried also with ActiveM

Re: Multicast or pipeline? Newbie question

2012-12-06 Thread Mike Stroming
Thanks all! -Mike On Thu, Dec 6, 2012 at 3:09 PM, Christian Müller < christian.muel...@gmail.com> wrote: > If both bean's should receive the same message, you should consider using > multicast [1]. > Camel will create a copy of the exchange and send the same exchange to the > second bean after t

Re: Multicast or pipeline? Newbie question

2012-12-06 Thread Christian Müller
If both bean's should receive the same message, you should consider using multicast [1]. Camel will create a copy of the exchange and send the same exchange to the second bean after the first one. You should be aware that Camel will create shallow copy of all your headers and the body. [1] http://

Re: XML deserialization with Jackson 2.1.1 - NoClassDefFoundError DelegatingDeserializer

2012-12-06 Thread Christian Müller
Thanks for sharing it with us. Best, Christian Sent from a mobile device Am 06.12.2012 19:56 schrieb "Martin Stiborský" : > Fixed https://jira.codehaus.org/browse/JACKSON-879. > > > On Wed, Dec 5, 2012 at 10:48 PM, Martin Stiborský < > martin.stibor...@gmail.com> wrote: > > > Hello guys, > > I h

Re: Problem w. FTP producer and charset

2012-12-06 Thread Preben.Asmussen
Hi Located this to be a problem introduced between 2.9.2 and 2.9.3 as a missing CamelCharsetName property on the Exchange. The CamelCharsetName property is not set after 2.9.2, and when IOConverter.toInputStream is called to convert exchange body to inputstream it uses IOHelper to get the Charset

Re: Splitter + aggregator + dynamic timeout

2012-12-06 Thread Henrique Viecili
Sorry to revive this post, but I am facing a similar problem. I see you are doing a split/aggregation with *dynamic timeout* coming from some property. What I need is to specify the timeout based on the content/header of the message via Expression... is it possible? att. *Henrique Viecili* On Th

Re: XML deserialization with Jackson 2.1.1 - NoClassDefFoundError DelegatingDeserializer

2012-12-06 Thread Martin Stiborský
Fixed https://jira.codehaus.org/browse/JACKSON-879. On Wed, Dec 5, 2012 at 10:48 PM, Martin Stiborský < martin.stibor...@gmail.com> wrote: > Hello guys, > I have a problem with XML deserialization to POJO class in a java bean, > used in Camel route. > The problem is following exception, when suc

Re: camel standlaone application deployment in clustered enviornment

2012-12-06 Thread maheshadepu
Hi Scott, Thanks for your reply. I am trying to implement failover for production. I have camel-context with 12 routes. All these routes will be triggered using camel-quartz scheduler. These routes do copying from one database to another database , Directory polling, parsing file, saving it

Re: Connecting to MS Exchanger Service using CXF

2012-12-06 Thread Philroc
I don't plan to access the MS Exchange WS in MyWSProcessor, because I access it using the from("cxf:...") command. My intent is to process email attachments in the processor, extract data from them, and store them in a database. For instance, I didn't create the web service proxy. Why do I need

Re: Multicast or pipeline? Newbie question

2012-12-06 Thread James Carman
I would say you don't need anything really special here. Something like this should suffice: from("jms:queue:input").beanRef("beanOne", "methodOne").beanRef("beanTwo", "methodTwo"); On Thu, Dec 6, 2012 at 10:58 AM, Mike Stroming wrote: > Hi all, > > Another newbie question, if you don't mind. >

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-12-06 Thread Claus Ibsen
On Thu, Dec 6, 2012 at 2:45 PM, anaCortes wrote: > Hi Scott, > > thank you for your answer, it´s really interesting :) > > Then we should use PooledConnectionFactory and for that we need to upgrade > also AMQ to 5.7.0. > You could either try to fix the leaks by backporting the patches and rebuild

Re: Multicast or pipeline? Newbie question

2012-12-06 Thread lleclerc
A multicast would send the same Exchange to both. My guess is pipeline. -- View this message in context: http://camel.465427.n5.nabble.com/Multicast-or-pipeline-Newbie-question-tp5723711p5723712.html Sent from the Camel - Users mailing list archive at Nabble.com.

Multicast or pipeline? Newbie question

2012-12-06 Thread Mike Stroming
Hi all, Another newbie question, if you don't mind. I have two processes that need the same message as input. However, the second process should only run based on successful output from the first process. Would a multicast/pipeline make sense here or not? I don't need either to get it to work,

Re: Process message on Endpoint using recipientList.

2012-12-06 Thread lleclerc
Thanks! What is the nabble link ? I was missing the start(). I got another problem but I could fix it. It was a NullPointerException, caused by not setting the CamelContext of my Endpoint. I used the debugger and found it in SedaConsumer.setupTasks() on getCamelContext(). Thanks again ! --

Re: Connecting to MS Exchanger Service using CXF

2012-12-06 Thread Willem jiang
Hi, Do you try to access the MS Exchanger WebService in the MyWSProcessor? How did you create the web service client proxy? CXF Client support to set the username and password by setting the AuthorizationPolicy on the ClientFactoryBean. -- Willem Jiang Red Hat, Inc. FuseSource is now part of

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-12-06 Thread anaCortes
Hi Scott, thank you for your answer, it´s really interesting :) Then we should use PooledConnectionFactory and for that we need to upgrade also AMQ to 5.7.0. -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Shared-fixed-reply-queue-doesn-t-consume-all-the-messages-tp572

Simple Expression With And Condition doesnt work in Camel 2.8

2012-12-06 Thread mail2bansi
Hello Group, Here is the snippet from my camel-context.xml ("${noun} contains 'Hello' and ${verb} contains 'World'") It throws the following error at run-time: org.apache.camel.ExpressionIll

Connecting to MS Exchanger Service using CXF

2012-12-06 Thread Philroc
Hello, I am trying to connect to an Exchange Web Service to retrieve e-mails and process them, using Apache Camel CXF. Here's my (very coarse) code so far: from( "cxf://https://mymailserver.com/ews?"; + "wsdlURL=https://mymailsever.com/ews/Services.wsdl&"; + "serviceClass=com.mycompany.MyEndPoint

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-12-06 Thread anaCortes
Have you tried also with ActiveMQ 5.5.1? Right now, we are using this version and we are not allowed to upgrade the AMQ version. In the end, we should do this because 5.5.1 has a memory leaks bug that has occasioned us some pain ;) Best regards, Ana -- View this message in context: http://cam

Re: Minimum experience and Knowledge required

2012-12-06 Thread Willem jiang
Don't forget to check out the of camel in action[1]. There are lots of handy examples can help you on the journey of camel ride :) [1]http://code.google.com/p/camelinaction/ -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.co