Modifying an Exchange inside a @RoutingSlip Bean

2011-02-25 Thread Yiannis Mavroukakis
Hello, I'm trying to add some ancillary information to an Exchange getting picked up from a dead message queue for retries. I'm basically trying to add a retry count so after a certain amount of pickups from the dead queue the message is forwarded to a final queue and remains there for manual insp

java DSL to spring DSL

2011-02-25 Thread JacobS
Hi I need some help converting some java DSL code to spring DSL java code: from(EndPointHelper.getURI("ComponentXTopic") + "&selector=COMPID='" + PropertiesProvider.GetCompId() + "'") // ... .onRedelivery(new RedeliveryProcessor())// ... .end(); Thanks Jacob -- View this message in context: h

Re: Synchronize the polling consumer with a route

2011-02-25 Thread JohnLance
Is is clear what I said?? -- View this message in context: http://camel.465427.n5.nabble.com/Synchronize-the-polling-consumer-with-a-route-tp3396847p3400108.html Sent from the Camel - Users mailing list archive at Nabble.com.

CXF component testing

2011-02-25 Thread bdusauso
Hi, I'd like to do some basic test for a route. I have a REST service, configured as : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cxf="http://camel.apache.org/schema/cxf"; xmlns:jaxrs="http://cxf.apache.org/jaxr

Re: Modifying an Exchange inside a @RoutingSlip Bean

2011-02-25 Thread Donald Whytock
Exchange.setProperty() expects an Object. Perhaps box your retry_count in an Integer? On Fri, Feb 25, 2011 at 3:43 AM, Yiannis Mavroukakis wrote: > Hello, > > I'm trying to add some ancillary information to an Exchange getting picked > up from a dead message queue for retries. I'm > basically tr

Re: Modifying an Exchange inside a @RoutingSlip Bean

2011-02-25 Thread Yiannis Mavroukakis
Hi Donald, It is already an Integer object and should be getting autoboxed anyway on ++, otherwise the code wouldn't compile in the first place, unless of course the semantics of prepending the ++ operator on a boxed primitive are acting a bit weird.. On 25 February 2011 15:16, Donald Whytock w

xpath and header

2011-02-25 Thread bigbear
Hi, I am trying to set the result of an xpath expression evaluation in the header and it is failing: from("jms:topic:someTopic") .setHeader("abc", xpath("/c:msg@event", String.class, ns)) Getting this error: The method xpath(String) in the type BuilderSupport is not applicable fo

Re: Issue with route specific onException and jms component

2011-02-25 Thread rkrdr
Is this related to the asynchronous routing engine for jms producer introduced in camel 2.5? As it relates to exceptions "thrown" from that producer? You might try the test again disabling the asynchronous engine for the jms producer ( set ?synchronous=true) to see if the result changes. Just

File consumer to CXF issues

2011-02-25 Thread Scott Came
I have a route that looks like this: http://camel.apache.org/schema/spring";> (As you can tell, I'm deploying this in ServiceMix, but the issue I'm having is in the Camel realm, thus my posting here...) I have defined outEndpoint earlier in the camel-context.xml file

Get updated entries from a DataBase

2011-02-25 Thread frblondin
Hi, I'm new to Camel. My need is to collect new information from an existing DataBase. My cursor is quite easy to manage (based on a timestamp) so I need to regularly check for new entries every minute by doing this query: "Select * From Table Where DTEVENT > LastManagedEntryDT". Ideally I'd lik

Re: xpath and header

2011-02-25 Thread Pham Ngoc Hai
Can you try: .setHeader("abc", XPathBuilder.xpath("/c:msg@event", String.class).namespace(ns)) Regards, Ngoc Hai --- On Fri, 2/25/11, bigbear wrote: > From: bigbear > Subject: xpath and header > To: users@camel.apache.org > Date: Friday, February 25, 2011, 11:27 PM > Hi, > > I am trying to s

Re: Synchronize the polling consumer with a route

2011-02-25 Thread Claus Ibsen
Hi Are you posting from Nabble? If so check this page http://camel.apache.org/discussion-forums.html Sometimes Nabble don't forward the mails to the real mailinglist, and thus we don't see what you write. On Fri, Feb 25, 2011 at 2:24 PM, JohnLance wrote: > > Is is clear what I said?? > -- > Vi

Re: java DSL to spring DSL

2011-02-25 Thread Claus Ibsen
Hi So where is your problem with the XML DSL? For the onRedelivery you must use define the RedeliveryProcessor as a bean And then refer to xxx. On Fri, Feb 25, 2011 at 2:06 PM, JacobS wrote: > > Hi > I need some help converting some java DSL code to spring DSL > > java code: > > from(EndPoi

RE: File consumer to CXF issues

2011-02-25 Thread Scott Came
After looking at this a bit more (and upgrading to the 4.3.1-fuse-00-00 version of ServiceMix, which contains Camel 2.6.0), it seems the problem boils down to Camel not knowing how to convert a GenericFile (what results from the part of the route) to a CxfPayload (what is expected by the part

Re: File consumer to CXF issues

2011-02-25 Thread Claus Ibsen
Hi What does your file contain? Often people use either POJO or MESSAGE format. So there could be a converter to/from CxfPayload missing. Especially for String, byte[], streams which is common types. On Sat, Feb 26, 2011 at 7:53 AM, Scott Came wrote: > After looking at this a bit more (and u

Re: CXF component testing

2011-02-25 Thread Claus Ibsen
Hi You should test the route in the XML file and therefore not add routes in Java DSL as well. Just use the producer template from the unit test method to send a message to the CXFRS service. And then assert the reply is as expected. On Fri, Feb 25, 2011 at 2:36 PM, bdusauso wrote: > > Hi, > >

Re: Camel 2.4.0 XA JMS Rollback

2011-02-25 Thread Claus Ibsen
Hi I suggest to take this up with the TX manger you use. There may be a bug/issue with it. And you can try a TX manager from another vendor to see if that helps. On Mon, Feb 21, 2011 at 6:22 PM, Greenbean wrote: > > I am using Camel 2.4.0, ActiveMQ 5.3, Java 6u23, Spring 3.0.3.  I am having a >