Re: Passing filename to EXEC

2010-12-07 Thread Claus Ibsen
What version of Camel are you using? The Spring XML ought to work. What doesnt work? On Mon, Dec 6, 2010 at 6:47 PM, bbuzzard billy.buzz...@bnsflogistics.com wrote: I created a route in Java that passed the filename to a Camel Exec function like this:  public void configure() throws

cxf:consumer and cxf:producer in one route

2010-12-07 Thread Thomas KRIECHBAUM
Hello, in my integration prototype an existing web-service should be adapted to an other contract. Therefore, I have a cxf:consumer(dataFormat=PAYLOAD; the associated cxf:endpoint definition references a WSDL but no service class) and a cxf:producer (the associated cxf:endpoint references a

Re: ProtocolBuf test with Jetty

2010-12-07 Thread Claus Ibsen
Hi If the data you send over Jetty (HTTP) is already serialized into google protobuf, then you need to unmarshal that back into an object. Assuming you want to work with that object. The Camel data format just makes it easier to do the marshal / unmarshal without knowing the API for doing that

Re: Camel Websphere MQ Error 2012

2010-12-07 Thread Claus Ibsen
Obviously you should check out first with IBM what that MQ error code means. On Tue, Dec 7, 2010 at 6:03 AM, Mark Borner mark.bor...@zurich.com.auwrote: Hi all: I've been reading up on how to configure Camel for use under Websphere and Websphere MQ. I've gotten things working except for a

Spring DSL with Exception

2010-12-07 Thread Charles Moulliard
Hi, I try to convert the following syntax in Spring DSL but get error and cannot find how to add transform. from(jetty://http://localhost:{{port}}/myserver;) // use onException tocatch all exceptions andreturn a custom reply message .onException(Exception.class)

Re: Spring DSL with Exception

2010-12-07 Thread Claus Ibsen
Hi Charles you know better! The Spring DSL is 1:1 to the Java DSL. So just use setHeader camelContext xmlns=http://camel.apache.org/schema/spring; route from uri=seda:a/ setHeader headerName=oldBodyValue simplebody/simple /setHeader to uri=mock:b/

Re: Spring DSL with Exception

2010-12-07 Thread Charles Moulliard
Shame on me to forget setHeader ... On 07/12/10 11:34, Claus Ibsen wrote: Hi Charles you know better! The Spring DSL is 1:1 to the Java DSL. So just use setHeader camelContext xmlns=http://camel.apache.org/schema/spring; route from uri=seda:a/ setHeader

Re: XML performance concerns

2010-12-07 Thread Illtud Daniel
patrice.god...@orange-ftgroup.com wrote: I'm handling big XML messages (they may be a few MB big). I'm concerned about potential performance issues. We handle XML files of up to 125MB in size, and we haven't had any problems from Camel. Is there any alternate DOM implementation available?

Importing routes from other XML files

2010-12-07 Thread Illtud Daniel
Yes, I know it's a FAQ, my problem is that: http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html Doesn't work. It appears (from googling) that the imported file needs a beans element and namespace declarations, which are missing from that FAQ entry, although it appears to

Re: Importing routes from other XML files

2010-12-07 Thread Claus Straube
Hi Daniel, I think this is not part of the documentation, because it's a native spring functionality. With import resource=myCoolRoutes.xml/ you're importing a new Spring context and here of course you need a surrounding bean element. Best regards - Claus On 07.12.2010 12:11, Illtud

Conditional processing in Spring DSL

2010-12-07 Thread Andy Bourke
Hi, I have been trying to influence whether or not the next endpoint gets processed based on some aspect of the mesage body using spring DSL and am having no luck with it. I have tried various incarnations of the following configuration (including lt;CHOICEgt;lt;WHENgt; tags in place of

Re: Performance issues when using camel-activemq and transactions.

2010-12-07 Thread Ioannis Canellos
Thanks Charles for your response! Even though the links you sent me are indeed useful, they didn't provide a solution to my problem. On Mon, Dec 6, 2010 at 1:54 PM, Charles Moulliard cmoulli...@gmail.comwrote: Hi Ioannis, Here are some links that could help you :

Re: Conditional processing in Spring DSL

2010-12-07 Thread Claus Straube
Hi Andy, try this: from(direct:map) .choice() .when(simple(${body.size} == 0)) .to(mock:null) .otherwise() .to(mock:notnull); Best regards - Claus On 07.12.2010 13:04, Andy

Re: Importing routes from other XML files

2010-12-07 Thread Claus Ibsen
On Tue, Dec 7, 2010 at 12:29 PM, Claus Straube claus.stra...@catify.com wrote: Hi Daniel, I think this is not part of the documentation, because it's a native spring functionality. With import resource=myCoolRoutes.xml/ you're importing a new Spring context and here of course you need a

Re: Performance issues when using camel-activemq and transactions.

2010-12-07 Thread Claus Ibsen
Ask at AMQ forum as its generally how to optimize and setup AMQ. Also check out maybe some of the webinars by Rob Davies on advanced and high performance AMQ stuff The webinars is avail at fusesource website. And it looks like you only got 1 connection in your pool? maxConnections=1 On Mon,

Re: Performance issues when using camel-activemq and transactions.

2010-12-07 Thread Ioannis Canellos
Hi Claus, thanks for your response. I had the luck to watch that webinar and I also have the slides, the do help in increasing the overall performance. But when I set transaction=true on the activemq component, the performance can degrade form 2000 msg/sec to 5 msg/sec. Regarding the number of

Re: Performance issues when using camel-activemq and transactions.

2010-12-07 Thread Claus Ibsen
Check some of the TX unit tets in camel-jms and compare notes. On Tue, Dec 7, 2010 at 2:20 PM, Ioannis Canellos ioca...@gmail.com wrote: Hi Claus, thanks for your response. I had the luck to watch that webinar and I also have the slides, the do help in increasing the overall performance.

Re: Performance issues when using camel-activemq and transactions.

2010-12-07 Thread Ioannis Canellos
I will do so. I will also check the tx scenarios described in the Camel in Action. On Tue, Dec 7, 2010 at 3:36 PM, Claus Ibsen claus.ib...@gmail.com wrote: Check some of the TX unit tets in camel-jms and compare notes. On Tue, Dec 7, 2010 at 2:20 PM, Ioannis Canellos ioca...@gmail.com

Re: Importing routes from other XML files

2010-12-07 Thread Illtud Daniel
Claus Ibsen wrote: On Tue, Dec 7, 2010 at 12:29 PM, Claus Straube claus.stra...@catify.com wrote: Hi Daniel, I think this is not part of the documentation, because it's a native spring functionality. With import resource=myCoolRoutes.xml/ you're importing a new Spring context and here of

Re: Importing routes from other XML files

2010-12-07 Thread Claus Ibsen
On Tue, Dec 7, 2010 at 3:20 PM, Illtud Daniel illtud.dan...@llgc.org.uk wrote: Claus Ibsen wrote: On Tue, Dec 7, 2010 at 12:29 PM, Claus Straube claus.stra...@catify.com wrote: Hi Daniel, I think this is not part of the documentation, because it's a native spring functionality. With

Re: cxf:consumer and cxf:producer in one route

2010-12-07 Thread William Tam
Mixing of POJO and PAYLOAD is probably fine but you have to do some conversion (e.g. in a processor). You know the message body for POJO mode is ListObject and for PAYLOAD mode is CxfPayload. So, it needs conversion from a ListObject to CxfPayload for the request and convert back from

IllegalThreadStateException on cold restart of BatchProcessor

2010-12-07 Thread sembler
Hi, As a relative newbie to Apache Camel I was experimenting with shutting down and restarting a route when certain conditions are met in my program (using camel-core 2.2.0). While doing this I encountered an IllegalThreadStateException in the BatchProcessor class of a resequencer that my route

Re: IllegalThreadStateException on cold restart of BatchProcessor

2010-12-07 Thread Claus Ibsen
Hi Thanks for reporting. Can you try with Camel 2.5 as well? On Tue, Dec 7, 2010 at 5:50 PM, sembler scott.emb...@noaa.gov wrote: Hi, As a relative newbie to Apache Camel I was experimenting with shutting down and restarting a route when certain conditions are met in my program (using

Re: IllegalThreadStateException on cold restart of BatchProcessor

2010-12-07 Thread sembler
Upgrading to 2.5 did away with the Exception. I also added two tests for using start/stop and suspend/resume with the ServiceHelper to verify that I wasn't calling methods in unintended ways. All of these tests pass in the 2.5 version, and not in 2.2. Looks like the version change fixes

InterceptSendToEndpoint - Http Component

2010-12-07 Thread Karthz
Hi, I'm using Camel 2.5. And, this is an outline of what I'm trying to do, camel:interceptSendToEndpoint uri={{custom.url}} inheritErrorHandler=true camel:doTry camel:to uri=bean:xyz?method=throwException / camel:doCatch

Re: Camel Websphere MQ Error 2012

2010-12-07 Thread Mark Borner
I have. http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqzao.doc/fm12190_.htm It was no help. I'm not running on z/OS, therefore the suggested action is: 1) Link the application with the correct libraries (threaded or nonthreaded). I'm running

Re: InterceptSendToEndpoint - Http Component

2010-12-07 Thread Claus Ibsen
Hi There is an attribute on the interceptSendToEndpoint skipSendToOriginalEndpoint which you should set to true if you dont want to send the message that was intercepted. BTW: You IDE may assist you and show code completion etc. when editing the XML files as its a good idea to see which

Re: ProtocolBuf test with Jetty

2010-12-07 Thread Willem Jiang
Hi, You are send the protocolbuf dataformat , not marshalling or unmarshalling the objects. Please check out this unit test[1] of camel protocol buffer as an example. [1]

Re: InterceptSendToEndpoint - Http Component

2010-12-07 Thread Karthz
Thanks, Claus. But, I want the original route skipped only when there's an exception. Otherwise, it should send the message as normal. Should I still set skipSendToOriginalEndpoint? Thanks. - - Karthz -- View this message in context:

Re: camel-jetty + authentication JAAS

2010-12-07 Thread Willem Jiang
Hi Charles, I just dug the code of SecurityHandler for a while, and found you didn't set the identiyService property on the loginService. SecurityHandler will not create a DefaultIdentiyService for you if the ScurityHandler's realmName is null. Maybe you can set the property of loginService

How about to support dynamic configurations in camel?

2010-12-07 Thread ext2
Hi: Changing the configuration dynamically at runtime to adjust the behavior of application is a use-full feature for many application. Camel support some dynamic mechanism now, etc: dynamic-routing pattern; but I still encounter some limits while using camel. For example: 1)how

Re: JMS request-reply in middle of route

2010-12-07 Thread davsclaus
You message still not going to the mailing list. What version of Camel are you using? And make sure that you send back a reply on QueueC. And use DEBUG logging to see whats happening. -- View this message in context:

Re: InterceptSendToEndpoint - Http Component

2010-12-07 Thread Claus Ibsen
Hi I had a look and there was an issue in Camel when using sto() which the interceptSendToEndpoint didn't check. I will get this fixed in the source code. On Wed, Dec 8, 2010 at 7:10 AM, Karthz skart...@gmail.com wrote: Thanks, Claus. But, I want the original route skipped only when there's