Re: Camel CXF RS Working example

2011-09-22 Thread nit_mis
Thanks Willem, Is there a working example in the repository so that I can refer to it? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-RS-Working-example-tp4831560p4832433.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ConcurrentModificationException added routes from multiple threads

2011-09-22 Thread Barry Kaplan
Looking at DefaultCamelContext a bit its seem clear that its not intended for multi-threaded access. Fortunately, since I use scalaz-camel to define all my routes/endpoints I have a very small api to protect. A quick spike in synchronizing the creation of endpoints -- the only CamelContext mutation

Re: ConcurrentModificationException added routes from multiple threads

2011-09-22 Thread Barry Kaplan
Still an issue with 2.8.1. When routes are added from multiple threads any place that iterates on context.lifeCycleStrategies (typically within camel itself) can throw ConcurrentModificationException. I can write a test for this, but first I would like to know if its supported to add routes from m

Re: Camel CXF RS Working example

2011-09-22 Thread Willem Jiang
Hi, It's a normal feature which is provide by CXF. CXF just list all the services those it published when you try to acces the root of CXF web application. On Fri Sep 23 05:34:48 2011, nit_mis wrote: Hi, I am looking for a camel CXF RS working example. Could anyone point me to the right sour

Re: Camel onException()

2011-09-22 Thread Christian Müller
You have to configure your file component to move the failed file into another directory. Look for the file2 component documentation for details. Christian Sent from a mobile device

Re: Message.copy() not exactly a copy

2011-09-22 Thread samslara
Ah you're right. But when I do the following at some point after invoking a service with HttpComponent: exchange.getIn().getBody(String.class); it returns a String ok, which is the response of the service. But if I instead do: exchange.getIn().copy().getBody(String.class); this returns null.

Re: ConcurrentModificationException added routes from multiple threads

2011-09-22 Thread Barry Kaplan
(I'm updating to 2.8.1 now to check things out. But I may need to compile some other packages, so it could take a bit.) -- View this message in context: http://camel.465427.n5.nabble.com/ConcurrentModificationException-added-routes-from-multiple-threads-tp4831653p4831660.html Sent from the Camel

ConcurrentModificationException added routes from multiple threads

2011-09-22 Thread Barry Kaplan
The problem is due to the variable DefaultCamelContext.lifecycleStrategies One thread can be adding to that list via addLifecycleStrategy while another thread can be iterating thru the collection. For me I'm adding routes from multiple threads. I saw a jira issue for this quite a ways back but it

Camel CXF RS Working example

2011-09-22 Thread nit_mis
Hi, I am looking for a camel CXF RS working example. Could anyone point me to the right source code for the working example? I have done following configuration and deployed the example in the tomcat but I am getting strange output when typing the URL on the browser http://www.springframework.org

Re: SOAP Headers and spring-ws

2011-09-22 Thread Richard Kettelerij
That was the rationale if I remember correctly. But it's rather hypothetical I agree, so I have no problem changing this if it suits Damian better. Looking forward to the patch. On Thu, Sep 22, 2011 at 7:14 PM, Daniel Kulp wrote: > On Wednesday, September 21, 2011 9:18:05 PM Damian Harvey wrote:

Using Camel to resolve a WebMethods JMS endpoint defined in JNDI

2011-09-22 Thread connecticut
I'm trying to configure a Camel endpoint that resolves to a WebMethods JMS queue. This is in my Spring context: com.webmethods.jms.naming.WmJmsNamingCtxFactor

re-configure a camel route

2011-09-22 Thread Venkatesh
Hi, I am retrying to change from() and to() endpoints dynamically which means I should be able to reconfigure the route and this is what I am planning to do: ...stop the route... ...call route's configure..so that it get the new endpoints ...start the route.. Is this a correct way? Thanks &

Re: SOAP Headers and spring-ws

2011-09-22 Thread Daniel Kulp
On Wednesday, September 21, 2011 9:18:05 PM Damian Harvey wrote: > We have a small issue with the way that the SpringWebserviceConsumer > retrieves SOAP Headers. > > SOAP Headers must be namespace qualified > (http://www.w3schools.com/soap/soap_header.asp), and when the Consumer > extracts the SOA

Re: dynamic routes

2011-09-22 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Thu, Sep 22, 2011 at 4:22 PM, Kovacs Zsolt wrote: > Hi, >  A have a bean with many-many interface functions, I want to route to them > without to explicitly hard code the function name into a switch() ... > statement

dynamic routes

2011-09-22 Thread Kovacs Zsolt
Hi, A have a bean with many-many interface functions, I want to route to them without to explicitly hard code the function name into a switch() ... statement. For example: The method name itself I put in exchange header or a property. Then It's possible to send the exchange to .to("bean:b

Re: Camel onException()

2011-09-22 Thread livensn
Thanks for your answer Ngoc, We tried that already. But nothing seems to work. Our route retries to consume the same file over and over again until it reaches its timeout. Any other suggestions? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-onException-tp48298

Re: Camel onException()

2011-09-22 Thread Claus Ibsen
Hi See the FAQ :) http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Thu, Sep 22, 2011 at 1:44 PM, livensn wrote: > Hi all, > > In our project, we need to validate a csv file, we do this in a camel route. > > But if something is wrong with the csv, we throw an exception. > Is it

Re: Camel onException()

2011-09-22 Thread Pham Ngoc Hai
Hi, You my want to try to put your onException to route scope and don't forget to add an end() to your onException sub from() .onException()stop().end() .to() .to(); Regards, Ngoc Hai --- On Thu, 9/22/11, livensn wrote: > From: livensn > Subject: Camel onException() > To: users@camel.a

Camel onException()

2011-09-22 Thread livensn
Hi all, In our project, we need to validate a csv file, we do this in a camel route. But if something is wrong with the csv, we throw an exception. Is it possible to stop the route right after this exception is thrown? We've tried onException(RuntimeException.class).stop() We've tried onExceptio

Re: Errors with SFTP producer and large files

2011-09-22 Thread Claus Ibsen
Hi I had a chance to look at this, and its improved by CAMEL-3962. https://issues.apache.org/jira/browse/CAMEL-3962 This is fixed from Camel 2.8.0 onwards. I will backport this to the 2.7 branch as well. On Fri, Sep 2, 2011 at 7:33 PM, Claus Ibsen wrote: > Thanks Mike for the details report. I

Re: SMPP Bind timeout

2011-09-22 Thread Ioannis Canellos
When working with protcols like SMPP, wireshark is your best friend :) -- *Ioannis Canellos* * FuseSource ** Blog: http://iocanel.blogspot.com ** Apache Karaf Committer & PMC Apache ServiceMix Committer Apache Go

Re: SMPP Bind timeout

2011-09-22 Thread Jan
Thanks all, Yes, wireshark pointed out that my password was wrong (there was a trailing space in the config file. I saw the non working message was one byte longer and it was space after password). Huawei SMSC should have replied with 0x000e (invalid password) but it it just resetted the conne

Re: endpoint URI can't parsed failed use utf-8?

2011-09-22 Thread Willem Jiang
Which version of Camel are you using ? There are some changes on the URI encoding of the endpoint in the Camel 2.9-SNAPSHOT. On 9/22/11 10:03 AM, xiangqiuzhao wrote: [java] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sunlink:/ 0.0.0.0:5090?bac

Re: endpoint URI can't parsed failed use utf-8?

2011-09-22 Thread Ioannis Canellos
> > my URI is java.lang.String and have not chinese chars, why byte invalid ? Some times the invalid chars are not printable/visible. It's rare but maybe you could rewrite (not copy&paste) the entire uri and see if that gets you anywhere. -- *Ioannis Canellos* * FuseSource

Multicast not to route messages

2011-09-22 Thread Narita Bagchi
Is there a way to inform "Multicast" not to route messages to some routes, at a given point in time? Why this is needed - Multicast routes messages to multiple destination. While processing/routing, few messages reached the intended destination and few did not(say, due to crash). Recovery runs