Re: Need help with Camel http producer

2011-10-10 Thread Willem Jiang
Did you check the service log which works listen to "http://localhost:8080/myServer/"; ? On Tue Oct 11 14:40:46 2011, Mohammad Shadab Ali wrote: Hi, 1. I am new with Camel. I am trying to create route as to process file from a file component and pass on to a http tomcat server through

Need help with Camel http producer

2011-10-10 Thread Mohammad Shadab Ali
Hi, 1. I am new with Camel. I am trying to create route as to process file from a file component and pass on to a http tomcat server through http producer, but I am not able to upload the file to the server. 2. I have created the route as follows from("file:inbox?noop=false").to("

Re: Camel JBI Interaction

2011-10-10 Thread Ioannis Canellos
You can dump the jbi packaging and still use jbi components. In any case yes you can combine camel and jbi with both osgi and jbi packaging. I think that there is a known issue in the operability of camel-blueprint and jbi (I am not 100% sure, I'll have to search a bit). Can you please try testin

Re: recipientList inside SEDA route with CXF

2011-10-10 Thread Achim Nierbeck
Hi Willem, some minor tests passed today so it looks quite good. I'm probably ready for a "full" test tomorrow. But right now this looks really promising. Regards, Achim 2011/10/10 Willem Jiang > Hi Achim, > > Did you have a chance to try to set the request context header of address ? > You ca

Re: Iterate over multivalued header

2011-10-10 Thread Kripalani, Raul
Hi, Depending on the behaviour that you are pursuing, and assuming that at some point you will want to send the exchange to the list of endpoints stored in your header (either sequentially or in a multicast fashion), you could use different the different enterprise integration patterns offered by

Iterate over multivalued header

2011-10-10 Thread David Karlsen
Hi. I'd like to iterate over a header containing a list and doing a "to uri" for each value. Is this possible? The splitter seems to only support body values, and camel:loop seems to be count-oriented. I could of course loop and use an expression for the list length and access it by index - but

Re: Need help with Camel OAuth

2011-10-10 Thread AnitaJ
Oh, I didn't quite expect to do all that (not to sound totally ungrateful... I am, truly!)... but, I was under the (obviously mistaken) impression that the example would work out of the box with minor tweaks :) Thanks for your help Brian. I will give it a try and post an update asap :) -- V

Re: Move does not work with file polling

2011-10-10 Thread ebinsingh
Appreciate your help. For some reason each os the polling consumers poll for few seconds and then terminate. context.addRoutes(new RouteBuilder() { public void configure() { from("quartz://myTimer?trigger.repeatInterval=2000&trigger.repeatCount=-1")

Re: Need help with Camel OAuth

2011-10-10 Thread Brian Topping
Sorry Anita, I meant to specify the "jetty" component, although you will likely need the "gauth" as well. On Oct 10, 2011, at 3:02 PM, Brian Topping wrote: > I see, I didn't realize you were going exactly from the example. > > I ran into a couple of problems. One was the accessibility of a j

Re: Move does not work with file polling

2011-10-10 Thread Taariq Levack
Hi The File consumer will poll at regular intervals, default half a second. If you use routes like Claus mentioned then you may have these 2 routes for what you described. from("file:someDir").to("seda:foo"); from("seda:foo").multicast().to("seda:bar", "file:someOtherDir"); I've left out the r

Re: Need help with Camel OAuth

2011-10-10 Thread Brian Topping
I see, I didn't realize you were going exactly from the example. I ran into a couple of problems. One was the accessibility of a java keystore file and setting up the password. This was required for the HTTPS component of the Jetty server to function. That's not documented in this example pa

Re: Move does not work with file polling

2011-10-10 Thread ebinsingh
Thanks a lot. My main concern is how to implement endless polling on a directory for files. Not quite understanding the behind work of Camel PlooingConsumer. I tried various ways but, the process terminates as soon as the current set of files have been read and processed. Appreciate your help.

Re: Event driven configuration using Camel - Is it feasible or a misuse of the framework.

2011-10-10 Thread Mark Doyle
Thanks for the tips, guys. We'll have a think about it and run a few tests :) On 10 October 2011 15:32, Rich Newcomb wrote: > If you like the JMS delivery model and you are using ActiveMQ as your > message broker, you could subscribe to the topic as a retroactive consumer > [1] and apply a "Las

Re: Need help with Camel OAuth

2011-10-10 Thread AnitaJ
Hi Brian, The route is in the TutorialRouteBuilder class in this link: http://camel.apache.org/tutorial-oauth.html Camel OAuth tutorial // Callback URL for sending back an authorized access token. String encodedCallback = URLEncoder.encode(String.format("https://%s.appspot.com/camel/handler";

Re: Exception not getting caught and multiple consumers getting the same message

2011-10-10 Thread Aaron Doyle
I figured out what the problem was, and the problem wasn't with Camel, it was me.  Was doing something stupid in my web service that was causing the problem.  Thanks so much for the quick responses and feedback.    Best Regards, Aaron From: Aaron Doyle To: "us

Re: Need help with Camel OAuth

2011-10-10 Thread Brian Topping
I just got done setting up Camel OAuth for the first time and would be happy to help. If you've ever done OAuth before, you know how hard it can be. Camel OAuth will mess with you in that case because it's so dirt simple! Anyway, could you post your routes so myself (or others) could help you?

Re: Move does not work with file polling

2011-10-10 Thread ebinsingh
Am trying to play around with Camel and this is my first project using it. The problem am trying to resolve is, 1. Poll a particular directory for files (This should be running all the time). 2. Convert them into Messages and write them to a SEDA (In-memory queue) 3. Read from the

Need help with Camel OAuth

2011-10-10 Thread AnitaJ
Hi, I am not sure if this the right forum, I am hoping it is Here is my question: I am trying to follow the tutorial at this link: http://camel.apache.org/tutorial-oauth.html Camel OAuth Tutorial I was able to get it started, but I am stuck at the point where I click on the link to author

Re: TypeConversion with JAXB when calling "remote" EJB

2011-10-10 Thread smythewin
I am afraid. First, since I would have to manually provide the XmlRootElement annotation to an JAXB generated type and second, I would probably lose the possibility that the type might be used within other schemas. -- View this message in context: http://camel.465427.n5.nabble.com/TypeConversi

Re: Non polling based file consumer

2011-10-10 Thread Brendan Long
On 2011-10-10 8:20 AM, szaruba wrote: > Hi everybody, > > In our project we have to grab lots of files out of a directory and copy > them into another directory. > The time, when we start the file consumption is fixed and given, we just > have to grab all files from > the directory.(What I have to

Non polling based file consumer

2011-10-10 Thread szaruba
Hi everybody, In our project we have to grab lots of files out of a directory and copy them into another directory. The time, when we start the file consumption is fixed and given, we just have to grab all files from the directory.(What I have to say is, that we don't know how much files we have

Re: Event driven configuration using Camel - Is it feasible or a misuse of the framework.

2011-10-10 Thread Rich Newcomb
If you like the JMS delivery model and you are using ActiveMQ as your message broker, you could subscribe to the topic as a retroactive consumer [1] and apply a "Last Image Subscription Policy" [2] on the broker to ensure that your subscribers receive the most recent message that was sent on the to

Re: No names for endpoints?

2011-10-10 Thread Ashwin Karpe
Hi, Yes, it is possible. You need to break up the route into 2 routes and make the endpoint a consumer for e.g from("Uri-A") .to("Uri-B") .to("Uri-C"); becomes from("Uri-A") .to("Uri-B"); from("Uri-Z") .to("Uri-B"); from ("Uri-B") .to("Uri-C"); Hope this helps. Cheers, A

Re: recipientList inside SEDA route with CXF

2011-10-10 Thread Achim Nierbeck
Hi Willem, I just was able to test this today, and it looks ok so far, but I wasn't able to test "multiple" hosts yet :) Will give feedback if that succeeds, so this looks also as a promising solution. Never the less I think the behavior I experienced seems to be a bug in the endpoint cache. Than

Re: recipientList inside SEDA route with CXF

2011-10-10 Thread Willem Jiang
Hi Achim, Did you have a chance to try to set the request context header of address ? You can override the endpoint address by using it. On Fri Oct 7 21:07:14 2011, Achim Nierbeck wrote: Ok, this only solved half of my problem or better it postponed it. Now I do have the following scenario:

Re: Configuring cxfEndpoint to make secure (HTTPS) : need help

2011-10-10 Thread Willem Jiang
Hi Chavva, You need to remove the connector part from httpj:engine element, Because it doesn't support the ssl. On Sun Oct 9 12:28:51 2011, chavva2...@gmail.com wrote: Hi Willem, Thanks for your reply. Am using Camel 2.5.0, need your help in configuration of HTT

Re: running a CAMEL exmple

2011-10-10 Thread Christian Schneider
There are two errors in your command. If you are in the target folder and your class is in package camelinaction then your command should look like: java -cp dependency/*;chapter1-file-copy-1.0.jar camelinaction.FileCopierWithCamel Christian Am 09.10.2011 17:37, schrieb newbiee: Thank y

Re: TypeConversion with JAXB when calling "remote" EJB

2011-10-10 Thread Willem Jiang
On Mon Oct 10 14:53:37 2011, smythewin wrote: Hi, I investigated a little further on this conversion issue between a camel artifact and an ejb artifact deployt on the same container. > From this I can state two thing: 1. deploying the camel route as a dependency of the web archive works fine. T

Re: running a CAMEL exmple

2011-10-10 Thread newbiee
Thank you for the reply. I tried it but I'm getting " java.lang.NoClassDefFoundError: FileCopierWithCamel" I have tried HelloWorld example and it runs successfully (just to make sure all environment varialbes are set properly). I have both "dependency" folder and "chapter1-file-copy-1.0.jar" in

Re: Thread pool for components in Camel

2011-10-10 Thread Claus Ibsen
On Sun, Oct 9, 2011 at 6:14 PM, diwakar wrote: > Hi, > >         >         >         >         >         > >        With this we can have 10 threads for the logging and the file > writing indpoints. But how to configure 10 threads for the poller > (file:input)? >        Please let me know your