Re: Exception caught but not rethrown in DefaultCamelContext.doStartCamel()

2010-11-17 Thread Bengt Rodehav
Anyone have an opinion about this? Shall I create a JIRA ticket? /Benke 2010/11/17 Bengt Rodehav > I've encountered some problems regarding starting Camel. I use Camel 2.5.0. > I also use iPOJO in Karaf to create OSGi services. When my iPOJO instance > becomes valid, my callback method is start

Fw: Multicast() Behaviour with Exceptions

2010-11-17 Thread Mark Borner
The attachments didn't come throughI've inlined them here: package au.com.zurich.phoenix.i90.routes; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.

Multicast() Behaviour with Exceptions

2010-11-17 Thread Mark Borner
Hello all: Can someone help me with the behaviour of multicast() when exceptions are thrown? I've attached a unit test & Spring context to outline my question. What I'm expecting is that all unit tests pass. What I'm experiencing is that unit test "end1FailureTest" doesn't pass. And I don't

Re: Error in MessageSupport when using JMSMessage

2010-11-17 Thread Tim
BTW, this is an error in logic in MessageSupport when interoperating with JMSMessage it seems. I'm not quite sure what the intention was when having it copy the old body over on null. Can a committer please either confirm this as a bug (and I can try to patch that would fix this without breaking o

Re: Defining routes dynamically

2010-11-17 Thread Craig Taylor
On 11/16/2010 07:35 PM, Donald Whytock wrote: I don't think choice() works that way. choice() is for selecting a single destination based on conditions; it does indeed stop at the first match. If you want multiple when() clauses to be hit, you'll need to give each one its own choice() end() wra

Re: camel-cxf: exception when parsing cxf:schemaLocation element | 2.6-SNAPSHOT maven problem

2010-11-17 Thread Willem Jiang
Hi Marco, I played with your test case and found something interesting, The issue is related to CXF bus initiation. I managed to run the test with CXF 2.3.0 by changing the camel-conf-test.xml like this It looks like cxf.xml can't load the bus with the lazy-init components

Re: [Aggregator] Persistence ?

2010-11-17 Thread Claus Ibsen
On Wed, Nov 17, 2010 at 11:06 AM, Olivier.Roger wrote: > > Well, I modified the HawtDB codec to remove all hawtbuf import and simply > (un)marshall the exchange to/from byte[]. Those byte arrays are kept in Blob > field in the database using the default LobHandler. > > Key are stored directly as S

Return of CAMEL-1751? (Tomcat hangs on shutdown)

2010-11-17 Thread Yiannis Mavroukakis
Hello everyone, I'm running a Camel instance in a Tomcat, and I see a ton of these during shutdown (and tomcat hangs) Exception in thread "DefaultMessageListenerContainer-27" java.lang.NoClassDefFoundError: org/apache/log4j/spi/NOPLoggerRepository at org.apache.log4j.LogManager.getLoggerReposito

Exception caught but not rethrown in DefaultCamelContext.doStartCamel()

2010-11-17 Thread Bengt Rodehav
I've encountered some problems regarding starting Camel. I use Camel 2.5.0. I also use iPOJO in Karaf to create OSGi services. When my iPOJO instance becomes valid, my callback method is started and I try to create a Camel context and start it. However, even if I fail to start Camel, no exception

Re: [Aggregator] Persistence ?

2010-11-17 Thread Olivier.Roger
Well, I modified the HawtDB codec to remove all hawtbuf import and simply (un)marshall the exchange to/from byte[]. Those byte arrays are kept in Blob field in the database using the default LobHandler. Key are stored directly as String and therefore, do not need to be converted. With theses modi

Re: ConvertBodyTo is problem when transaction failed

2010-11-17 Thread Claus Ibsen
On Wed, Nov 17, 2010 at 3:48 AM, Willem Jiang wrote: > On 11/17/10 12:29 AM, Claus Ibsen wrote: >> >> On Tue, Nov 16, 2010 at 3:10 PM, Kannan  wrote: >>> >>> Hi >>> >>>   I am convert the message body to given class type and save the object >>> into DB.if transaction failed the message will send t