Performance puzzle. Slow splitter on object array?

2013-03-26 Thread MarkD
Hi all, We have a very strange performace issue that we think we have narrowed down to a splitter using the hawtio tool (Which is awesome by the way). In the image below the mean processing time tooltip is from the splitter on ${body}. The rest of the endpoints take 1-4ms with the two activemq-vm

Re: Performance puzzle. Slow splitter on object array?

2013-03-26 Thread MarkD
Of course, i'll paste the entire route: ${body} You'll notice this is slightly different to the hawtio diagram. The from seda:udp endpoint which star

Trouble with asserts on a mockendpoint receiving caught exceptions

2013-01-27 Thread MarkD
Hi all, I have the following test route in my createRouteBuilder method of the test: The test data includes some input that throws exceptions so I am expecting those to end up in the mock endpoint called errorBin. This does seem to be the case. If I put a log after the docatch and before the to

TypeConverterLoaderException with ActiveMQ route in OSGi

2012-02-04 Thread MarkD
Hi all, I've got a problem with an OSGi app that adds some route via a ServiceFactory using Spring to define the beans and manage the services. I think it began after I moved to the latest Camel version (2.8 and up). The routes are no longer started and therefore only exist as RouteDefinitions in

Re: TypeConverterLoaderException with ActiveMQ route in OSGi

2012-02-05 Thread MarkD
Thanks, Claus. Did this arise with Camel 2.8.0 or 2.9.0? Or is it a combination of the ActiveMQ and Camel version? -- View this message in context: http://camel.465427.n5.nabble.com/TypeConverterLoaderException-with-ActiveMQ-route-in-OSGi-tp5456103p5458523.html Sent from the Camel - Users mailin

MessageFormatException using requestBody InOut over activemq JMS

2012-03-11 Thread MarkD
Hi all, I have a pojo that returns a Map of Custom objects. In my camel context this pojo is wired to receive requests from a jms (activemq) queue, i.e., it can act as a simple service. Code below: @Override public Map getParameterGroups() { return model.getParameterGroups(); } I have a clie

Re: MessageFormatException using requestBody InOut over activemq JMS

2012-03-11 Thread MarkD
Looking at this closer, it seems to suggest I cannot return/send a custom objects, only String, Map, List and objectified primitives. -- View this message in context: http://camel.465427.n5.nabble.com/MessageFormatException-using-requestBody-InOut-over-activemq-JMS-tp5554469p5554519.html Sent fro

Re: MessageFormatException using requestBody InOut over activemq JMS

2012-03-11 Thread MarkD
For what it is worth, i've just noticed the incorrect return type on the invoker. Obviously that's not the cause of the error. @Override public List requestParameterGroups() { // testing service call List parameterGroups = new ArrayList(); parameterGroups = (List) requestParameterG

Re: MessageFormatException using requestBody InOut over activemq JMS

2012-03-11 Thread MarkD
Ok, I looked into this and found the message in the Activemq source. It looks like it is trying to set an Object Property using the values part of the return map. Maybe something it getting confused somewhere. Changing the server to return a List instead solved the problem. Not sure why! -- View

Re: MessageFormatException using requestBody InOut over activemq JMS

2012-03-11 Thread MarkD
Sorry: Changing the server to return a List instead solved the problem. Should read: Changing the *service* to return a List instead solved the problem. i.e. @Override public List getParameterGroups() { return model.getParameterGroupsAsList(); } -- View this message in context: http://came