Custom PollingConsumerPollingStrategy Query

2014-01-27 Thread Chirag Dewan
Hi all, I have a FTP consumer route which polls the FTP directory continously. Now I want to implement a Custom Polling Stratergy which checks if the FTP server can be connected and thus stops polling if it cannot connect. In my begin method,how can I connect to the FTP server and capture the

RE: Pros and cons of using choice as opposed to having separate endpoints

2014-01-27 Thread Ravindra.Godbole
can you provide following. 1. How many routes you have 2. Does each route have special processing ? 3. Does routing logic change frequently ? 4. Is any route used more than other which requires special configuration ? - Ravi From: Shing Hing Man [mat...@ya

RE: MessageHelper.dumpAsXml()

2014-01-27 Thread Ravindra.Godbole
Bruce Do you want to manually inspect files and copy files to some other area for replay ? Are you not using any messaging channel queue to store messages ? You can use dumpAsXml to inspect the content but use the messaging channel queue again to replay the messages. Some custom filter can be

Routing on REST URL patterns

2014-01-27 Thread mnusry
I am struggling to get the following going, I want to route REST url patterns to different services based on the URL pattern, Ideally I would like to, based on different REST url patterns combine results from different services as well and forward the result to the calling service. The part I a

Re: camel-cxf , return complex type object problem

2014-01-27 Thread Willem.Jiang
Hi, For the CXF invocation, it need to return not only the invocation result, but also some out parameters, so we use a Array or List to story these results. If you just set the body with a simple object, camel-cxf can wrap it into a List, but if you put a list as a return object, camel will not

Re: camel-cxf , return complex type object problem

2014-01-27 Thread nono
here is same problem (with different test case). it works with return type Pojo but failed with List or Pojo[]; could it be fuse-esb problem?? 20:35:41,671 | WARN | qtp33362237-410 | PhaseInterceptorChain| 147 - org.apache.cxf.cxf-api - 2.6.0.redhat-60024 | Interceptor for {http://ja

Re: JMS failed because destination does not exist, but keeps trying to refresh?

2014-01-27 Thread Andrew Thorburn
Bean & Context Settings (Blueprint file): http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"; xmlns:camel="http://camel.apache.org/schema/blueprint"; xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"; xmlns:xsi="http://

JMS failed because destination does not exist, but keeps trying to refresh?

2014-01-27 Thread Andrew Thorburn
Using SMX 4.5.3 and Camel 2.10.7 (the version included with SMX). I've got my application set up to use the IBM MQ JMS APIs to transfer messages to a WebSphere MQ server. That works fine (which surprised me, frankly!), but if the destination doesn't exist, I see the following in the log: 19:14:11

Pros and cons of using choice as opposed to having separate endpoints

2014-01-27 Thread Shing Hing Man
Hi, I am receiving http get request messages at http://localhost:8081/test/install http://localhost:8081/test/registration http://localhost:8081/test/purchase and each of the above are processed differently. I could have one end point from("jetty:http://localhost:8081/test?matchOnUriPrefix

POP3 ---> SMTP exception when attachments are used

2014-01-27 Thread John Kramer
Hello, I have created the following route that pulls from a pop3 email account, extracts some info, and then forwards the email on to an SMTP server to different recipients depending on the use case. .from("pop3://...&mapMailMessage=true") .process( new SimpleSMTPSetupProcessor()

MessageHelper.dumpAsXml()

2014-01-27 Thread bhcohen
Since MessageHelper.dumpAsXml() marshals a Message as XML, is there a method somewhere that does the opposite, i.e. takes XML output generated by from dumpAsXml() and produces a Message? I'm trying to implement a dead letter channel in which I write problematic Messages (body and header) to a fil

Re: Mail attachment, zip files goes to message body

2014-01-27 Thread Claus Ibsen
Hi What do you mean the zip file is in the message body? File attachments to mail messages are in the body, there is no other places they can be. They just have that disposition part stuff. A search on the web I could find this http://email.about.com/cs/standards/a/mime.htm On Thu, Jan 23, 201

Apache camel guaranteed delivery - multiple endpoints

2014-01-27 Thread MichaelAtSAG
All, Please provide best practices on supporting guaranteed delivery with routes that containing multiple endpoints. Our system writes to a ehCache with persistence on the producer, then routes to all endpoints. Once all endpoints receive the message and the route completes, the message is removed

Re: Unit Testing Question

2014-01-27 Thread Castyn
I figured it out, was an sl4j version issue. Seems things are working now so I appreciate the help! -- View this message in context: http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746502.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to configure cxf component to use proxy?

2014-01-27 Thread gangaaloori
Hi Camel Experts, I'd like to know how and where to configure cxf component to use proxy. I'm using cxf component to invoke a web service which is hosted on the internet and is behind our corporate proxy. I'm afraid if there is no such way as of now. My Camel version is - 2.12.2. I might get arou

RE: simple expression language error

2014-01-27 Thread Elvio Caruana (ecaruana)
Hi Muhsin, >From the exception cause: " SimpleIllegalSyntaxException: Binary operator == >does not support token & at location 18 ${body.action} == >'updateLogin'" It looks to me that somehow you've got a unicode encoding of the single quote ('). Replace it with a literal single quote (') and t

simple expression language error

2014-01-27 Thread Muhzin
Hi all , I am trying to define a predicate using simple expression language for my router .choice() .when().simple("${body.action} == 'updateLogin'") .bean(UpdateProfile.class, "editProfile") .otherwise().bean(UpdateProfile.class, "noAction"); Stacktrace

RE: cannot exchange mesasge body during a retryWhile()

2014-01-27 Thread Elvio Caruana (ecaruana)
Thanks Claus, using the onRedelivery() works! Elvio -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: 27 January 2014 07:47 To: users@camel.apache.org Subject: Re: cannot exchange mesasge body during a retryWhile() Hi retryWhile is only for returning true|false,

Re: camel-cxf , return complex type object problem

2014-01-27 Thread nono
i just copied only top stack traces which is related. the buttom part of stack traces looks irrelevent for me Rgds -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746496.html Sent from the Camel - Users mailing list arc

Re: Bindy component: more than one model object per package

2014-01-27 Thread lb
There is a PR on Camel's GitHub mirror ( https://github.com/apache/camel/pull/83) aimed to fix CAMEL-5958. As today that patch removes package support in bindy so it can be only incorporate in a version on which API breaks are permitted. https://github.com/lburgazzoli/camel https://issues.apache.o

Re: Tracer per route without explicitly turning off tracing

2014-01-27 Thread Shing Hing Man
Thanks for the suggestion ! Shing On Monday, January 27, 2014 4:18 AM, "ravindra.godb...@cognizant.com" wrote: You can set the traceFilter for tracer which is nothing but defining predicate. Custom predicate can be defined as you want. It can be just one string or pattern of strings[de

Re: Content based routing

2014-01-27 Thread Claus Ibsen
Hi Yeah or the recipient list http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Mon, Jan 27, 2014 at 11:01 AM, wrote: > You can use dynamic router feature of camel. Read the documentation carefully > as not returning null means it will loop infinitely. > > http://camel.apache.org/

RE: Content based routing

2014-01-27 Thread Ravindra.Godbole
You can use dynamic router feature of camel. Read the documentation carefully as not returning null means it will loop infinitely. http://camel.apache.org/dynamic-router.html -Original Message- From: Muhzin [mailto:rmuh...@gmail.com] Sent: Monday, January 27, 2014 2:51 PM To: users@came

Re: Camel SQL compnent - Return

2014-01-27 Thread Dharmendra Patel
Hi There, For select operations, the returned result is an instance of List> type, as returned by the JdbcTemplate.queryForList() method. For update operations, the result is the number of updated rows, returned as an Integer. In a processor you can access them as below: List> exchangeBody = exc

Content based routing

2014-01-27 Thread Muhzin
Hi all, How can route my message which is a pojo based on a specific attribute value of it? For eg , suppose that I have a have class A which has an attribute 'action' , I need to route my message based on the value of 'action' . -- BR Muhsin

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-27 Thread contactreji
Hi Richard Thanks!! That helped me :-) Cheers Reji -- View this message in context: http://camel.465427.n5.nabble.com/Moving-Objects-between-Active-MQ-queues-using-Camel-Routes-tp5746020p5746489.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel SQL compnent - Return

2014-01-27 Thread contactreji
Hi Can someone tell me in what format are the records returned into the exchange once camel sql component performs a select query. How can I access those values in an implemented Processor class down the route? Cheers Reji Mathews -- View this message in context: http://camel.465427.n5.na

Re: camel-cxf , return complex type object problem

2014-01-27 Thread Richard Kettelerij
Are you sure this is the complete stacktrace? Look like some part is missing. On Sun, Jan 26, 2014 at 12:23 PM, nono wrote: > Dear all, > > I encounter a camel-cxf 's cxf:bean problem > it seems , it works with return type as Pojo but failed with List > I got exception at karaf like Below. Cou