Re: Exception handling ... onException

2009-11-10 Thread DRy
Hi, Claus Ibsen-2 wrote: > > Can you show the entire hierarchy of this exception? I guess it could > contain also a caused exception which may be of type Exception or the > likes. > The UnmarshalException is declared like this public class UnmarshalException extends Exception { ... } so

Re: Exception handling ... onException

2009-11-10 Thread DRy
Hi, Claus Ibsen-2 wrote: > > I had a look and created a ticket to improve/fix this issue > https://issues.apache.org/activemq/browse/CAMEL-2158 > > The current code did stop to eagerly instead of finding better > candidates longer up the exception hierarchy. > Nice! Thx! ... DRy -- View

Re: Exception handling ... onException

2009-11-10 Thread Claus Ibsen
Hi I had a look and created a ticket to improve/fix this issue https://issues.apache.org/activemq/browse/CAMEL-2158 The current code did stop to eagerly instead of finding better candidates longer up the exception hierarchy. On Tue, Nov 10, 2009 at 11:19 AM, DRy wrote: > > Hi, > > I think I've

Re: Exception handling ... onException

2009-11-10 Thread Claus Ibsen
On Tue, Nov 10, 2009 at 11:19 AM, DRy wrote: > > Hi, > > I think I've got it ... > > On my RouteBuilder-class (see below) I try to catch UnmarshalException in > one and all other excpetions in the other onException call. > > >        onException(UnmarshalException.class) >        .useOriginalBody(

Re: using properties file

2009-11-10 Thread terminator_008
Hi, I am able to use create the endpoints by reading the values from properties file as However I am not able to set the value of the endpoint uri (${dev2hub1odepatientservice.uri}) in the header which is a requirement in my case. Can you please suggest how this can be achieved.

Re: using properties file

2009-11-10 Thread tide08
It is known issue, you cannot use properties in camelContext tag but there are ways to achieve this. See below thread for more details - http://old.nabble.com/reading-endpoints-from-a-properties-file-td25894947.html#a25895352 Thanks! terminator_008 wrote: > > Hi, I am reading some values from

using properties file

2009-11-10 Thread terminator_008
Hi, I am reading some values from a property file in the camel -config. I want to be able to use ${dev2hub1odepatientservice.uri} in the Pipeline set header element. But it does not work. Here is my camel-config file. Would appreciate any pointers. http://camel.apache.org/s

Issue with Load and Soak test

2009-11-10 Thread tide08
I am trying to setup load and soak test for my routes but I am running into issues. Can someone point out what exactly am I doing wrong? I am using Camel 2.1-SNAPSHOT and subetha/wiser as smtp for this test, and since it does not support imap, to consume the messagse. I thought I would write cus

Re: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread Carlo Camerino
if i use this class coming from spring org.springframework.jms.listener Class SimpleMessageListenerContainer there is a property called concurrentconsumers. if i don't set a value it defaults to 1. in camel, if i use the jms component and i don't set a value on concurrentconsumers? what would

Re: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread Carlo Camerino
thanks for the reply On Tue, Nov 10, 2009 at 6:42 AM, Schneider Christian wrote: > Hi Carlo, > > I think the main question for you is: Do you want just remoting inside one > application (client and server are inside the same release unit), or do you > want to offer services to another application

Re: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread Carlo Camerino
Thanks A Lot For The Answer I think this would be a good option so that I could hide implementation details in the future http://camel.apache.org/hiding-middleware.html >>Its either Spring remoting - or go JAXWS or REST I'd say. They've all >>got strengths and weaknesses. >>If you want WSDLs /

Re: Use sys.property in xpath filter

2009-11-10 Thread Claus Ibsen
On Tue, Nov 10, 2009 at 3:30 PM, bhusted wrote: > > I reviewed that page extensively and found a reference to using the namespace > > http://camel.apache.org/xml/variables/system-properties > > What I am really looking for is an example that shows if it is possible to > use a variable in the Xpath

AW: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread Schneider Christian
Hi Carlo, I think the main question for you is: Do you want just remoting inside one application (client and server are inside the same release unit), or do you want to offer services to another application? If you want simple remoting then you can directly expose your business objects. In this c

Re: Use sys.property in xpath filter

2009-11-10 Thread bhusted
I reviewed that page extensively and found a reference to using the namespace http://camel.apache.org/xml/variables/system-properties What I am really looking for is an example that shows if it is possible to use a variable in the Xpath expression. So in Java I do the following: System.setProp

Re: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread James Strachan
2009/11/10 Carlo Camerino : > Hi, > > I have this question. We have a requirement in a project in which we have to > use remoting for our application. Reading the Spring Documentation, it says > that it is possible to do remoting via Spring Remoting Facilities. They have > several options and I opt

NoTypeConversionAvailableException - Camel 2.1-SNASPHOT & Camel QuickFix

2009-11-10 Thread Charles Moulliard
I have this error generated using the last snapshot of Camel core/spring CaughtExceptionType:org.apache.camel.NoTypeConversionAvailableException, CaughtExceptionMessage:No type converter available to convert from type: quickfix.Message to the required type: java.util.List at org.apache.ca

Re: Question On Using Spring Remoting Against Camel Remoting

2009-11-10 Thread bruno . borges
Wrong path my friend. Camel is not a "service container". It is a message routing framework. It routes messages (in which might contain a data object, a file, an xml, etc...) You can "send" and/or "receive" messages with Camel, using different protocols, some remote, some not. It is up to y

Re: Camel-OSGI and namespaces

2009-11-10 Thread Charles Moulliard
Thx. It should be interesting to mention it in the wiki page : http://camel.apache.org/spring.html Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard On Tue, Nov 10, 2

Re: Camel-OSGI and namespaces

2009-11-10 Thread Willem Jiang
Hi Charles, The right Camel context should be If you don't want to add the namespace prefix you need to define the default namespace at root element like this xmlns="http://camel.apache.org/schema/spring";>

Camel-OSGI and namespaces

2009-11-10 Thread Charles Moulliard
When Spring DSL is used to define camelContext, route, ... in an OSGI bundle, the following namespaces and schema location must be used : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/o

Re: Exception handling ... onException

2009-11-10 Thread DRy
Hi, I think I've got it ... On my RouteBuilder-class (see below) I try to catch UnmarshalException in one and all other excpetions in the other onException call. onException(UnmarshalException.class) .useOriginalBody() .handled(true) .to("log:onException(Unm