Mock Testing

2012-05-18 Thread ebinsingh
Hi All, I am looking to set up some mock test using Apache camel and I see contradictory behaviours. Please advice. I am not sure if the mock is doing what is should (Verify if the headers are set properly). ${in.header.messageId} == 1

Re: Optional Endpoints

2012-05-18 Thread Henrique Viecili
Yes, if you use Spring DSL you can check it out at [1] [1] http://camel.apache.org/using-propertyplaceholder.html att. *Henrique Viecili * On Fri, May 18, 2012 at 10:42 AM, prueegg wrote: > Is it possible to relate to properties in the camel context as well? > All the examples I've seen are bas

Intercepting documentation old? adviceWith deprecated in favour of?

2012-05-18 Thread Tom Howe
The documentation for intercepting routes at http://camel.apache.org/advicewith.html shows using getRouteDefinition() and adviceWith(). Both methods are deprecated now. Is there newer documentation for this? Thanks, Tom

Re: Unable to read properties from camel PropertiesComponent

2012-05-18 Thread Vincent Nonnenmacher
if you use the Spring properties you need to refer to properties using the Spring ${} interpolation syntax but if you choose to use the Camel properties component you must use the {{ }} interpolation syntax in that latter case its better to use the On Fri, May 18, 2012 at 3:07 PM, j

Unable to read properties from camel PropertiesComponent

2012-05-18 Thread javaxmlsoapdev
I have defined "properties" bean of type camel PropertiesComponent as shown below. "my.properties" has threadPool.defaultSize and threadPool.maxPoolSize properties defined. However camel threadPoolProfile isn't able to recognize those properties and keep complaining as follow. Any idea?

Re: Optional Endpoints

2012-05-18 Thread prueegg
Is it possible to relate to properties in the camel context as well? All the examples I've seen are based on the properties of the exchange. -- View this message in context: http://camel.465427.n5.nabble.com/Optional-Endpoints-tp5711824p5711916.html Sent from the Camel - Users mailing list archiv

Re: Create a new Camel component via Scala-Component-Archetype?

2012-05-18 Thread Claus Ibsen
Hi Kai Welcome back to Europe. I had a quick look. I can see you figured out the __name__ naming of the source files to allow the plugin to use dynamic names. Well I guess you just copied the java version :) It looks really good. Just a few thoughts. I wonder if the scope of the log4j logging e

Re: Optional Endpoints

2012-05-18 Thread prueegg
Hi Henrique Thanks for your reply. In the meantime I've found out, that an interceptor could do the job as well. The filter statement would allow me to switch on/off on the fly, where the interceptor would be more static. So I assume the filter and property solution would be the better one and

Re: Optional Endpoints

2012-05-18 Thread Henrique Viecili
Patrick, take a look at Message Filter EIP, you can configure the filter clause based on properties loaded using camel:simple language. att. *Henrique Viecili* On Fri, May 18, 2012 at 7:14 AM, prueegg wrote: > I have a question concerning optional endpoints. > > Background is that I want to d

Exception Handling using onException

2012-05-18 Thread Sameer Apte
I would like to know how others would address the following use case: It is about jms to http communication. Requirement is if we get ConnectException or http response code 503 then we should keep on retrying the delivery. However if we get anything else apart from 200 and 503 as response code we

Re: 2 persistence units in Camel

2012-05-18 Thread Babak Vahdat
O.K. now I see the problem which is somehow similar to the one once I had as well... However I went for another solution which was to simply list all my persistence units in *one single* persistence.xml file. Then put this file on your classpath which would make it accessible under the path META-IN

Optional Endpoints

2012-05-18 Thread prueegg
I have a question concerning optional endpoints. Background is that I want to do something like this: from(anyActiveMQ-Queue) .bean(anyProcessingBean) .to(anotherActiveMQ-Queue) *.to(additionalFileArchiveFolder)*; // optional if the message should really go to the *additionalFileArchiveFolder *s

Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-05-18 Thread sekaijin
So Christian Mueller wrote > > It depends on your runtime environment, which Registry is used: > - org.apache.camel.spring.spi.ApplicationContextRegistry > - org.apache.camel.blueprint.BlueprintContainerRegistry > - org.apache.camel.impl.CompositeRegistry > - org.apache.camel.impl.JndiRegistry >

Re: spring-ws component unmarshall Jaxb problem when Payload namespace prefix in attribute value

2012-05-18 Thread Christian Müller
Please have a look into the unit tests for the camel-spring-ws component where we do this already. Best, Christian Sent from a mobile device Am 18.05.2012 01:45 schrieb "ben_rr" : > Hi Christian > > It is a bit hard to create a unit test because to recreate the problem > involves a running web s

with osgi service reference

2012-05-18 Thread m.jimen.blazquez
Hi, I am trying to rethrow an excepcion in a . When I have this code: http://camel.apache.org/schema/spring";> java.lang.Exception