Logging cxfrs payload on exception

2012-01-11 Thread Preben.Asmussen
I'm starting to use cxfrs component and have a question regarding logging the response payload in case of an error calling a rest service (responsecode 500). Currently only the get something like: [d #0 - JmsConsumer[MOSART_HUB]] EndpointMessageListenerERROR Caused by: [org.apache.camel.Ru

Re: More complicated scenario for camel-bam

2012-01-11 Thread Łukasz Dywicki
Hey Hadrian, I started investigating the camel-bam code and one from statements I wrote is not true. The Process name can be set by calling the ProcessBuilder constructor. The Process-N name is a default behaviour. Also, if it makes a sense to support delaying the activity? Eg making an activit

Re: More complicated scenario for camel-bam

2012-01-11 Thread Łukasz Dywicki
Time is the best teacher. :) I've found a way to do a processing message after activity receives it - with interceptors. There some exceptions, but both persistence and processing works. Solutions looks next: interceptFrom("activemq:incoming") .split(body()) .multicast()

Creating an alternative OsgiServiceRegistry

2012-01-11 Thread m.jimen.blazquez
Hi, I am working with camel, spring and OSGi (Spring DM). In my scenario I have several OSGi services registered under the same interface (each one with different implementation). This services could be differentiated by their properties: When looking

SpringCamelContext afterPropertiesSet never called

2012-01-11 Thread Mike Pilone
I'm debugging an issue where my Spring initialized code attempts to use a Camel route before the route is initialized. I attempted to fix this by adding "depends-on" in my Spring configuration to make my code depend on the camelContext but it didn't help. I could see that the context was being

RE: SpringCamelContext afterPropertiesSet never called

2012-01-11 Thread Mike Pilone
I was able to work around the issue by writing my own bean implementing InitializingBean which takes a reference to the camel context and manually calls afterPropertiesSet. This forces the Camel context to start before Spring's application context initialization continues. In theory this should

Camel netty consumer - AsyncRoutingEngine

2012-01-11 Thread Hampel, Michael
hello, can someone pls tell me the reason(s) why the Netty Consumer is not using an AsyncProcessor when receiving a message? thanx in advance for any help, michael

Re: SpringCamelContext afterPropertiesSet never called

2012-01-11 Thread Hadrian Zbarcea
Mike, do you have a piece of (xml) code that reproduces this? Hadrian On 01/11/2012 11:23 AM, Mike Pilone wrote: I'm debugging an issue where my Spring initialized code attempts to use a Camel route before the route is initialized. I attempted to fix this by adding "depends-on" in my Spring conf

RE: SpringCamelContext afterPropertiesSet never called

2012-01-11 Thread Mike Pilone
Hadrian, I put a sample application that shows the problem up at http://dl.dropbox.com/u/3337852/camel-init-debug.zip It is a maven project so you can compile it with "mvn compile" and run it with "mvn exec:java". You can also open it up in Eclipse. Let me know if you need any more information

Pass variable to mybatis component

2012-01-11 Thread rifazjeoffrey
I've my route like this, ${in.body} As you can see I'm using the mybatis component as a poller. NOw, how

Re: Creating an alternative OsgiServiceRegistry

2012-01-11 Thread Willem Jiang
Hi, I think you can extends the OSGiServiceRegistry as you want, but you still need to find a way to set the className and version things. Maybe you can set the filter String when you create your version of OSGiServiceRegistry. On Wed Jan 11 23:12:35 2012, m.jimen.blazquez wrote: Hi, I am

No consumers available on endpoint exception

2012-01-11 Thread MichaelAtSAG
Two Spring XML Context files: Spring 1: http://camel.apache.org/schema/spring"; xmlns:evt="http://namespaces.softwareag.com/EDA/Event";> Spring 2: http://camel.apache.org/schema/spring";>

Re: Pass variable to mybatis component

2012-01-11 Thread Christian Müller
Could this solve your problem? from("timer:xxx?yyy") .bean("yourEnricher") .to("mybatis:statement?zzz"); or from("quartz:xxx?yyy") .bean("yourEnricher") .to("mybatis:statement?zzz"); Best, Christian On Wed, Jan 11, 2012 at 8:26 PM, rifazjeoffrey wrote: > I've my route like this, > >

Re: No consumers available on endpoint exception

2012-01-11 Thread Christian Müller
The Camel VM component is where you are looking for: http://camel.apache.org/vm.html Best, Christian On Wed, Jan 11, 2012 at 10:54 PM, MichaelAtSAG wrote: > Two Spring XML Context files: > > Spring 1: >http://camel.apache.org/schema/spring"; > xmlns:evt="http://namespaces.softwareag.com/

What's best practice for running Camel 2.9.0 in JBOSS 5.X

2012-01-11 Thread gsilverman
I want to run a camel route in a JBOSS 5.X instance in order to send messages via a Camel proxy to a remote service which is running an activemq broker. Should I put the route and accompanying proxy interface in a jar file and launch it in the JBoss instance lib directory, or package it as a war