Best way for ScheduledBatchPollingConsumer to signal failure

2013-05-16 Thread Preben.Asmussen
Hi I have worked on a consumer component that extends the ScheduledBatchPollingConsumer, and want to signal when an error occurs during connect to a remote resource (basic http). Atm any connect error will be logged, but I want it to surface in jmx attribute like the ExchangesFailed and LastExchan

Re: Why the "handled" tag can't use in xml.

2013-05-16 Thread Claus Ibsen
Hi Just validate your xml against the schema and you can figure out why. should be moved up, so it comes before the process java.lang.Throwable true ... On Fri, May 17, 2013 at 7:55 AM, matt.u wrote: > Hi all.The error handler can use in java dsl like this: > onExc

Why the "handled" tag can't use in xml.

2013-05-16 Thread matt.u
Hi all.The error handler can use in java dsl like this: onException(Throwable.class) .to("file://errors") .process(errorProcessor) .handled(true) .end(); But in xml, I write this, it can't working: java.lang.Throwable true What's the right useage? Tha

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
You can always use the API from CamelContext to parse it, and then set the value in the route. String parsed = camelContext.resolvePropertyPlaceholders("{{xxx}}"); marshal().string(parsed) On Thu, May 16, 2013 at 10:19 AM, satspeedy wrote: > Hi Claus, > > furthermore same problem...it won't b

Using camel with ESB like TIBCO

2013-05-16 Thread rtarway
I am planning to integrate my J2EE application with various external web-services using Camel and bundle camel with EAR. Can the camel integration module be used with any ESB other than FUSE ( Jboss FUSE )?? If any one has tried using camel integration engine with ESB like IBM message broker or TIB

Re: camel multicast

2013-05-16 Thread Nibs
yes I did that but nothing work -- View this message in context: http://camel.465427.n5.nabble.com/camel-multicast-tp5732682p5732698.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: jetty:http dynamic uri in consumer (from)

2013-05-16 Thread paramjyotsingh
Update: I tried with http header "Connection: close" from client and it doesn't work. -- View this message in context: http://camel.465427.n5.nabble.com/jetty-http-dynamic-uri-in-consumer-from-tp5732691p5732697.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf intermittent error:

2013-05-16 Thread Willem jiang
Hi, It is looks like CXF will have some trouble to access the wsdl when it is starting up. Can you just remove the wsdlURL option from the camel-cxf endpoint uri, as you are using MESSAGE dataFormat, you don't need to specify the it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of R

Re: jetty:http dynamic uri in consumer (from)

2013-05-16 Thread paramjyotsingh
This is invocation is just trigger to background process and I want to client to wait for this to get completed. That is why i am using inOnly. This part is working fine. If any of these 2 problems get solved i would be able to get response back as "jetty:http" has httpBinding and i can have cust

Re: camel multicast

2013-05-16 Thread Willem jiang
Did you set the stopOnException option to be true in your multicast? -- 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://jnn.it

Re: jetty:http dynamic uri in consumer (from)

2013-05-16 Thread Willem jiang
You are sending the InOnly message to seda endpoint. Can you change it to InOut? -- 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)

jetty:http dynamic uri in consumer (from)

2013-05-16 Thread paramjyotsingh
1) I have a requirement to expose a REST service POST with uri like http://localhost:9080/boxes/{boxid} would it be possible to expose this using jetty:http like: http://localhost:9080/boxes/{boxid} /> i know this doesn;t work it works with restlet 2) In above question i am trying to use jetty:

Re: Sending an exchange into a route mid way

2013-05-16 Thread Bilgin Ibryam
You could separate route R1 into two smaller routes connected with direct. Then you could send messages to both smaller routes... Bilgin On 16 May 2013 17:02, samslara wrote: > Hello, > I have a hypothetical question that's been bugging me. Is it possible to > send an exchange into a route

AW: Camel in Action book

2013-05-16 Thread jhm
> I am new to Camel and learning it. Welcome. > Camel in Action book is 3 years old > and based on Camel 2.5. > - Is it still valuable and usable with current Camel 2.11? Yes! > - Is there an update or another book announced? Ok - that's more a question for the authors (who are also here on t

Re: Camel in Action book

2013-05-16 Thread Bruno Dusausoy
gquintana a écrit : Hello, I am new to Camel and learning it. Camel in Action book is 3 years old and based on Camel 2.5. - Is it still valuable and usable with current Camel 2.11? - Is there an update or another book announced? The examples of the book are constantly updated to latest Camel r

Camel in Action book

2013-05-16 Thread gquintana
Hello, I am new to Camel and learning it. Camel in Action book is 3 years old and based on Camel 2.5. - Is it still valuable and usable with current Camel 2.11? - Is there an update or another book announced? Thanks for advice. -- View this message in context: http://camel.465427.n5.nabble.c

Can I deploy multiple instances of the same RoutePolicy on the same route?

2013-05-16 Thread Chris Wolf
I implemented a custom route policy that is similar to the CronScheduledRoutePolicy, except instead of start/resume suspend crontabs, it only has a start/resume crontab and a duration. Well, now I need to support multiple customers,each having different schedules. I was thinking of just adding mu

Re: what's wrong with oracle configuration

2013-05-16 Thread Chris Wolf
First, I see that you're using Oracle-XE. If you're on Windows, be advised that Oracle-XE is only supported on 32bit versions of Windows. I learned the hard way - strange erratic behavior, etc. I advise that if you have 64bit Windows, that you uninstall Oracle-XE and install the standard releas

camel multicast

2013-05-16 Thread Nibs
Hi I am using camel 2.4 I know its a old version of camel but I need a help badly I am using multiacast to process same message differently. I wanted to replies from both the message ,so if one endpoint fails to process the message ,the 2nd endpoint also stop the processing and the message will g

Re: set string marshal encoding by a property-file

2013-05-16 Thread satspeedy
Hi Claus, furthermore same problem...it won't be parsed. Any other possibility to solve it? thanks beforehand. regards satspeedy -- View this message in context: http://camel.465427.n5.nabble.com/set-string-marshal-encoding-by-a-property-file-tp5732657p5732664.html Sent from the Camel - User

Re: Why do Camel core methods still throw Checked Exceptions (everyone agrees they're 'bad' now, right?)

2013-05-16 Thread pmcb55
Thanks a million for the response Hadrian. That was what I kinda suspected (i.e. legacy reasons). Your response makes me very confident now that wrapping the offending methods is the correct action for me right now (it's pretty trivial for me to do anyway). That way I get rid of the nasty (i.e. 'n

Populate all optional parameter to SubmitSm/DataSm to SMSC

2013-05-16 Thread mayank.gupta
Hello All , I am currently working on a project requirement to send the Optional Parameters in Submit_SM/Data_SM to SMSC , but i can't find CamelSmppOptionalParameters Header for Producer Message Headers. I need to send the optional parameter in the Data_SM/Submit_SM , Is there any patch availabl

what's wrong with oracle configuration

2013-05-16 Thread takidean
should id add something here i add the jar file to the classphath , it works fine for mysql but bugs for oracle the error that i got Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could no

Sending an exchange into a route mid way

2013-05-16 Thread samslara
Hello, I have a hypothetical question that's been bugging me. Is it possible to send an exchange into a route mid way? So to elaborate I have a route R1 that does something simple like (pseudo camel xml): Now I have this other route R2 that somewhere down the line (in P4) wants

Re: De-duplicate route file name?

2013-05-16 Thread Peter Hilton
On 16 May 2013, at 12:23, Peter Hilton wrote: > I’m using Camel to process files, and need to save a copy of each incoming > file to an 'archive' directory. In addition, if another file arrives with the > same name as an earlier file, I must add this to the archive with a different > file name

How to access CXF's payload mesage parts?

2013-05-16 Thread clover
Hi everyone, i have a Camel route deployed as a servlet. It programmatically creates SOAP request messages based on user input. For this purpose, i've written a custom Processor that creates CxfPayload and sends it to the Web service. The Web service is specified with a Uri in the route and the PA

camel-cxf intermittent error:

2013-05-16 Thread Daniel Bularzik
Hello! New to Camel, new to this list. Please let me know if this is the wrong place to ask questions like this. I'm using Camel 2.11.0, and CXF 2.7.4; running Camel in Tomcat 7.0.25. I have a basic route to prove that I can hit a web service: http://buzz.akc.org:8080/bvg-service/service

Re: How to create a generic SOAP consumer?

2013-05-16 Thread Smith-John
Ok, new try. I want to create a generic SOAP consumer. The consumer should be able to process all possible kinds of soap messages (+headers like ws-a...). As I'm already using cxf component in my project I want (if possible) to realize this with cxf too. Now the problems I have: -Using Message f

Re: stream:file closeOnDone not close all time

2013-05-16 Thread Jean Francois LE BESCONT
By the way, the problem appears not on if there are two files. It appears if the last exchange is not passed to the endpoint. Example with only one file : from("file://C:/Temp/camel/rep1/?noop=true") .split() .tokenize("\n") .streaming() .process(new Processor() {

Move single files (out of many) to another directory

2013-05-16 Thread Stefan Burkard
Hi Camel-Users I have a workflow where files are moved from an input-directory to a processing-directory and later to an error- or target-directory. Out of the file content messages are generated (Claim Check Pattern) and if an error occurs during processing of the message, it is sent to an error-

De-duplicate route file name?

2013-05-16 Thread Peter Hilton
I’m using Camel to process files, and need to save a copy of each incoming file to an 'archive' directory. In addition, if another file arrives with the same name as an earlier file, I must add this to the archive with a different file name and not overwrite an existing archive file. Two questi

connection to oracle jdbc

2013-05-16 Thread takidean
HI i use to get a connection with an oracle jdbc i configured my camel context like that when i run i get this error Failed to execute goal org.apache.camel:camel-maven-plugin:2.10.4:run (default-cli) on project rout: null: MojoExecutionException: Invoca

JBoss7.11 restart necessary after reconfiguring routes

2013-05-16 Thread satspeedy
Hi @all, environment is jboss 7.11 in combination with liferay portal. After delpoying, route builder class and reconfigured routes will not be reloaded without a server restart. Does anyone have experience on it? Best Regards & thanks beforehand. satspeedy -- View this message in context:

Re: stream:file closeOnDone not close all time

2013-05-16 Thread Jean Francois LE BESCONT
Hi, Thanks Claus for the answer. I have logged a jira ( https://issues.apache.org/jira/browse/CAMEL-6367) I have not really understand how to implements your recommandation about exchange.addOnCompletion. After downloaded the camel code to understand how package org.apache.camel.converter.stream

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
Try with org.apache.camel.model.dataformat.StringDataFormat sdf = new StringDataFormat(); sdf.setCharset("{{}}"); And in the route .marshal(sdf) On Thu, May 16, 2013 at 9:41 AM, satspeedy wrote: > Hi Claus, > > thanks for your answer...placeholders aren't supported, too. > > Any other pos

Re: set string marshal encoding by a property-file

2013-05-16 Thread satspeedy
Hi Claus, thanks for your answer...placeholders aren't supported, too. Any other possibility to solve it? Regards satspeedy -- View this message in context: http://camel.465427.n5.nabble.com/set-string-marshal-encoding-by-a-property-file-tp5732657p5732660.html Sent from the Camel - Users mai

Re: Passing a list of parameters in SQL endpoint

2013-05-16 Thread Claus Ibsen
Hi Ah yeah maybe something we can improve. Can you details Camel version used. And also maybe the SQL you want to execute. And what your body contains. Then we can ponder how to improve the camel component. On Wed, May 15, 2013 at 10:17 AM, Shishir wrote: > We are using IN clause and need to

Re: set string marshal encoding by a property-file

2013-05-16 Thread Claus Ibsen
Try with .marshal().string("{{output.encoding}}") Though not sure if we support the placeholders there, but give it a try first. On Thu, May 16, 2013 at 9:06 AM, satspeedy wrote: > Hi @all, > > my purpose is to make the encoding of marshalling configurable in the > following route by a property

set string marshal encoding by a property-file

2013-05-16 Thread satspeedy
Hi @all, my purpose is to make the encoding of marshalling configurable in the following route by a property-file. .process(new ...Processor()) .marshal().string(simple("${properties:output.encoding}")) // "IBM-273" .to()... I've tried it with simple language...but the string(..)-method do not p