Re: jaxb non-thread safe issue

2014-03-05 Thread Claus Ibsen
Try and test with latest Camel release. On Wed, Mar 5, 2014 at 7:02 AM, simafengyun wrote: > Hi, > > Thanks for your quick reponse. > > I used camel 2.10.4. > > Sorry, I didn't introduce my issue in detail. > > Actually, in the route marketDataRoute, it get message from jms queue, and > the jms

Re: Camel CXF RS

2014-03-05 Thread Charlie Mordant
Hi, You can dig starting from here: https://github.com/Tcharl/net.osgiliath.hello/blob/master/net.osgiliath.hello.routes/src/main/java/net/osgiliath/hello/routes/HelloRoute.java . REGARDS, 2014-03-04 19:16 GMT+01:00 CamelTester : > Hi, > Can anyone give an complete camel CXF RS example? > > >

Re: deploying Camel integrations in Jboss

2014-03-05 Thread Claus Ibsen
Hi Well smooks is on the classpath somewhere org.milyn.smooks.camel.converters If you do not use/need it, then try to find where its coming from and remove it. On Tue, Mar 4, 2014 at 7:54 PM, nicoletta wrote: > Hello, > I am simply using the mentioned example. It uses a transform tag: could it

Re: camel-xmlrpc response not showing

2014-03-05 Thread imranrazakhan
Hi Willem, I sorted issue, Apache camel is not providing response if it contain any exception from server like following, but it suppose to send back response to processor, its not HTTP error. Or i suppose to handle such errors with some onException faultCode 1003 faultString Data ou

Re: Camel CXF - SOAP 1.1 vs SOAP 1.2

2014-03-05 Thread Willem Jiang
Can you setup the wsdlUrl attribute of the cxfEndpoint, in this way camel-cxf can pick up right soap binding version for you. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁

Re: Camel CXF - SOAP 1.1 vs SOAP 1.2

2014-03-05 Thread Willem Jiang
You can setup the soap binding just like this. http://localhost:${CXFTestSupport.port3}/test";     serviceClass="org.apache.camel.wsdl_first.Person" serviceName="${CxfEndpointBeans.serviceName}" endpointName="${CxfEndpointBeans.endpointName}"     wsdlURL="person.wsdl" loggingFeatureEnabled="tru

Re: Camel CXF - SOAP 1.1 vs SOAP 1.2

2014-03-05 Thread fs
Yes, the seems to do the trick. But only after taking the correct namespace http://cxf.apache.org/blueprint/bindings/soap into use. Now we get soap fault in the SOAP 1.2 format. Thanks a lot for the help! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-SOAP-1-

Re: Camel CXF RS

2014-03-05 Thread David Parker
Or try this very good tutorial project https://github.com/santoshjoshi/camel-cxfrs-example On Tue, Mar 4, 2014 at 10:22 PM, Charlie Mordant wrote: > Hi, > > You can dig starting from here: > > https://github.com/Tcharl/net.osgiliath.hello/blob/master/net.osgiliath.hello.routes/src/main/java/net/

Re: Howto find similar ftp endpoints by routeId

2014-03-05 Thread Claus Ibsen
Hi 1) Each consumer created by the endpoint is single threaded, and has their own FtpClient which they use for communicating with the FTP server. And the FtpClient does not support concurrency (eg only download a single file at a time etc.) But you can have mutliple routes from the same ftp endpo

Re: Camel CXF RS

2014-03-05 Thread Raul Kripalani
Unfortunately that tutorial only showcases Camel as a client, but not as a service provider. If you want to build a JAX-RS service, I suggest you use the new SimpleBinding to make sure that your @HeaderParams, @PathParams, @QueryParams, etc. are injected as Camel headers, and that your request pay

Re: using CSV Bindy data format

2014-03-05 Thread cgsk
Hi, Thanks for the reply. I cant see the option for omitting quotes for empty values in Bindy page. I always get csv record as "some Value","","" insteadof "some value",, Could you please help. Regards, CGSK -- View this message in context: http://camel.465427.n5.nabble.com/using-CSV-Bindy

Spring WS and Soap Action

2014-03-05 Thread richardgroote
Hello, We currently are using REST component and SOAP component for receiving messages within our application. The below part of the camel configuration has a dynamic URL for the restlet call and part of the URI is used within the onMessage of the bean. The below works fine and makes it easy to d

Re: how to do redelivery message

2014-03-05 Thread Henryk Konsek
> But processorService is an OSGi service. I can't check null value in this > step. Wrap the service in other bean or processor and let it do the check / throw exception. Cheers. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: camel-dropbox

2014-03-05 Thread Henryk Konsek
> I need also to include files that matches the regex pattern (like the > include option in file component). Is that possible? DropBox component is not maintained by the Apache team. We could answer your question after it will be donated to ASF :) . For now I don't know where to find its sources n

AW: Howto find similar ftp endpoints by routeId

2014-03-05 Thread Robin.Lutter
Hi Claus, thanks for your response. 1) that means following is possible? - Route A: from("ftp://server1/directory1/?username=user&password=RAW(pwd)").to("direct:consumer"); - Route B: from("ftp://server1/directory1/?username=user&password=RAW(pwd)").to("direct:consumer"); We have some issue

Re: using CSV Bindy data format

2014-03-05 Thread Charles Moulliard
To help you, we need that you share an example somewhere. On Wed, Mar 5, 2014 at 12:05 PM, cgsk wrote: > Hi, > > Thanks for the reply. > > I cant see the option for omitting quotes for empty values in Bindy page. I > always get csv record as "some Value","","" insteadof "some value",, > > Could

Property placeholder and JNDI

2014-03-05 Thread helander
I am running a number of Spring XML routes on a JEE server. I would like to configure parts of the uri:s used in the routes via ENC entries in my application (war). In my web.xml I have a number of declarations that holds the values to be "injected" into the uri:s of my routes. Is there already s

Re: Using Camel properties

2014-03-05 Thread javakurious
Thanks for the response. The way I am using properties file is I am using an incoming request's parameter as a key to look up the properties file to find the correct route to use. But for an invalid request parameter, I want to check for its existence in the properties file before using it. So,

Re: deploying Camel integrations in Jboss

2014-03-05 Thread nicoletta
Thanks Claus, I have no smooks in the classpath for what I am concerned. So, I tried the opposite of your suggestion: I added smooks-all-1.5.1 to the dependency of the project (thus, to the lib dir of the war). And this time the error is the following: *[/camel-example-servlet-tomcat-2.12.3]] [HD

How to prevent ftp from creating ID- file?

2014-03-05 Thread mister blinky
I have a route that uploads files in a directory to a remote server. It determines *what* and *where* to upload at runtime using properties, so it uses a recipientlist. from("direct:moveUpload") .log("@@@ MoveUpload: Using properties: " + propsId) .from("file://{{move.from.dir}}?

Re: How to prevent ftp from creating ID- file?

2014-03-05 Thread Claus Ibsen
You route has 2 inputs, remove the direct:moveUpload so it only has one. Its when you call that input the file name is empty and you get that empty file with the message id as its name. On Wed, Mar 5, 2014 at 5:33 PM, mister blinky wrote: > I have a route that uploads files in a directory to a r

Re: deploying Camel integrations in Jboss

2014-03-05 Thread nicoletta
Just to update... I tried with jboss as 7 and I got the same type converter error. However, I have also tried on Tomcat "standalone" and it works... -- View this message in context: http://camel.465427.n5.nabble.com/deploying-Camel-integrations-in-Jboss-tp5748289p5748348.html Sent from the Came

Re: deploying Camel integrations in Jboss

2014-03-05 Thread Claus Ibsen
On Tue, Mar 4, 2014 at 4:15 PM, nicoletta wrote: > Hello everybody, > I have to deploy camel integration projects on jboss as 6. I've read many > other threads about this, but I cannot find the solution. As a first step, I > am trying to deploy the examples/camel-example-servlet-tomcat of Camel >

Re: How to prevent ftp from creating ID- file?

2014-03-05 Thread mister blinky
hmm... I need my direct:MoveUpload b/c it's called from various other routes. It's a generic route. Is there another way? One approach might be to filter out the unwanted file. There's no include/exclude on FTP. I'm using java dsl so can't use ANT filter. I could use GenericFilter i suppose. But i

Fw: software dev & architecture at ApacheCon Denver

2014-03-05 Thread Melissa Warnkin
Hello software dev & architecture Enthusiasts,  As you are no doubt aware, ApacheCon North America will be held in Denver, Colorado starting on April 7th.  Software dev & architecture has 14 talks; check it out here:  http://apacheconnorthamerica2014.sched.org/overview/type/software+dev+%26+ar

Re: How to prevent ftp from creating ID- file?

2014-03-05 Thread Claus Ibsen
Hi Yeah see the filter eip to filter out when you use direct:xxx http://camel.apache.org/message-filter.html On Wed, Mar 5, 2014 at 6:16 PM, mister blinky wrote: > hmm... I need my direct:MoveUpload b/c it's called from various other routes. > It's a generic route. Is there another way? > > One

Re: Howto find similar ftp endpoints by routeId

2014-03-05 Thread Claus Ibsen
What version of Camel do you use? On Wed, Mar 5, 2014 at 3:29 PM, wrote: > Hi Claus, > > thanks for your response. > > 1) that means following is possible? > - Route A: > from("ftp://server1/directory1/?username=user&password=RAW(pwd)").to("direct:consumer"); > - Route B: > from("ftp://ser

Re: Using Camel properties

2014-03-05 Thread swwyatt
You could subclass org.apache.camel.component.properties.DefaultPropertiesParser and set it as the propertiesParser in your PropertiesComponent. Your subclass could handle the missing property and just return null. -- View this message in context: http://camel.465427.n5.nabble.com/Using-Camel-p

FTP Move fails - have found cause but don't understands why

2014-03-05 Thread rbogdanoff
Hi, I am used camel 2.12.3 I am using an FTP consumer. ftp.mysite.com/mydir/mydir2?username=abc&password=abc&streamDownload=true&move=.done&delay=60 There is a file in /mydir/mydir2 named xxx.xxx but the move fails. I debugged the code and found the cause. In org.apache.camel.component.fi

Re: Camel Routes - Multi threading nor running parallel

2014-03-05 Thread ame
Hello Hema, Have you had a luck to resolve this...? I am having similar issue... -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routes-Multi-threading-nor-running-parallel-tp5721385p5748359.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using Camel properties

2014-03-05 Thread Claus Ibsen
There is an option you can turn on the properties component to tell it to ignore unknown property keys. On Wed, Mar 5, 2014 at 8:01 PM, swwyatt wrote: > You could subclass > org.apache.camel.component.properties.DefaultPropertiesParser and set it as > the propertiesParser in your PropertiesCompo

Re: FOUND CAUSE! - FTP Move fails - have found cause but don't understands why

2014-03-05 Thread rbogdanoff
I did more debugging and found the cause If you have streamDownload=true Take a look at org.apache.camel.component.file.remote.FtpOperations.retrieveFileToStreamInBody() at line 345 if (endpoint.getConfiguration().isStreamDownload()) { InputStream is = client.r

Re: camel-xmlrpc response not showing

2014-03-05 Thread Willem Jiang
Current we just throw the exception out, so you can handle the exception in the camel route yourself.  BTW, ErrorHandler or onException could help you to do that.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chi

Camel process the same file again when idempotent = true

2014-03-05 Thread spanchag
This is what my route looks like: ftp://root:root123@10.61.150.7:22/root/ftp_location?stepwise=false&idempotent=true&binary=true&delete=false&stepwise=false"; /> .. .. When I put the same file in the folder, camel doesn't pick it up. Is there a way I can tell Camel to pick up the same file again

Re: Camel process the same file again when idempotent = true

2014-03-05 Thread Claus Ibsen
Hi What do you mean by putting the same file in the folder? So if you have a file named foo.dat you have downloaded before. And you then override foo.dat with new content and want to pickup that file? For that see the idempotentKey option http://camel.apache.org/file2 On Thu, Mar 6, 2014 at 5:35