Re: Trouble with asserts on a mockendpoint receiving caught exceptions

2013-01-28 Thread Mark Doyle
Ok, figured it out. It helps if you don't write: errorBin.assertIsNotSatisfied(); rather than: errorBin.assertIsSatisfied(); I blame code complete :D On 27 January 2013 22:41, Mark Doyle wrote: > Just noticed the test code only shows up on the nabble web interface. > &g

Re: Trouble with asserts on a mockendpoint receiving caught exceptions

2013-01-27 Thread Mark Doyle
Just noticed the test code only shows up on the nabble web interface. This is the createRouteBuilder configure contents: from("mina2:tcp://localhost:12345?sync=false&codec=#kissFrameSyncCodecFactory"). setExchangePattern(ExchangePattern.InOnly). bean(hdlcFrameDecoder). doTry(). bean(packetDec

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
r, Open Source Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk> > > On Tue, Oct 9, 2012 at 3:11 PM, Mark Doyle > wrote: > > > Hi all, > &

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
must have a from Object converter as any POJO could be passed to the endpoint. It sounds like FallBackConverter will over it though... On 9 October 2012 16:31, Claus Ibsen wrote: > On Tue, Oct 9, 2012 at 4:11 PM, Mark Doyle > wrote: > > Hi all, > > > > Camel-mongodb ha

Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
Hi all, Camel-mongodb has a set of provided type converters. @Converter public static DBObject fromStringToDBObject(String s) { ..blah blah } @Converter public static DBObject fromAnyObjectToDBObject(Object value) { ...blah blah } I'm trying to run a query which means sending a json string. Af

Re: Splitting a POJO message into multiple messages containing values of a collection from a stored as a field on the POJO.

2012-10-08 Thread Mark Doyle
ethod, completely in configuration. On 8 October 2012 10:00, Claus Ibsen wrote: > On Sun, Oct 7, 2012 at 5:09 PM, Mark Doyle > wrote: > > Hi all, > > > > I there a simple way of taking a POJO from a message body and calling a > > method on one of it's field

Re: Period character issue with camel-mongo.

2012-10-06 Thread Mark Doyle
Camel Committer > > Enterprise Architect, Program Manager, Open Source Integration specialist > > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > > http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk> > > > > On Fri, Oct

Re: Period character issue with camel-mongo.

2012-10-05 Thread Mark Doyle
that conversation again. > > Regards, > > *Raúl Kripalani* > Apache Camel Committer > Enterprise Architect, Program Manager, Open Source Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk &l

Re: Period character issue with camel-mongo.

2012-10-05 Thread Mark Doyle
Manager, Open Source Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk> > > On Wed, Oct 3, 2012 at 10:23 PM, Mark Doyle > wrote: > > > Hi Raul, > &

Re: Period character issue with camel-mongo.

2012-10-03 Thread Mark Doyle
7) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) On 2 October 2012 21:26, Mark Doyle

Re: Period character issue with camel-mongo.

2012-10-02 Thread Mark Doyle
gt; Apache Camel Committer > Enterprise Architect, Program Manager, Open Source Integration specialist > http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani > http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk> > > > On Tue, Oct 2, 2012 at 4

Period character issue with camel-mongo.

2012-10-02 Thread Mark Doyle
I have a problem where a String field contains a period. This causes the following exception: Caused by: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'Stock6.tm.Azimuth') which I believe stems from restrictions in the depths of the mongo! The soluti

Re: Event driven configuration using Camel - Is it feasible or a misuse of the framework.

2011-10-10 Thread Mark Doyle
ld get it. > > If several source can change the state that will not work. > > > > > > If a central server is ok for you then a simple service would be good > > enough. > > If not then a very good solution for your problem would be distributed > > cache like h

Re: Event driven configuration using Camel - Is it feasible or a misuse of the framework.

2011-10-09 Thread Mark Doyle
es and use the information from the last message. > > Another option is to use a webservice or rest service. One call to update > and one call to read the config. > > Christian > > Am 08.10.2011 09:41, schrieb Mark Doyle: > > Is there a pattern which will allow us to sen

Event driven configuration using Camel - Is it feasible or a misuse of the framework.

2011-10-08 Thread Mark Doyle
Is there a pattern which will allow us to send a single message to a channel which will then persist.The source can replace the message simply by sending another one, this means the latest message is the only important one. The channel can have many subscribers and any late subscribers should pick

Re: Problem designing a camel route for an OSGi system.

2011-05-06 Thread Mark Doyle
I did actually solve this today using exactly that (coupled with the ability to route to "this" using a nested private RouteBuilder). When I get a minute I will provide details for the mailing list in case it helps anybody in the future. On 6 May 2011 16:51, Tarun Ramakrishna wrote: > It seems

File streaming using the Stream component in Camel 2.7 - changes

2011-05-06 Thread Mark Doyle
Hi all, When streaming a file in < 2.7 like this: The stream restarted from the beginning when reaching the end of the file. I believe it now acts like the tail command and "waits" at the end of the file for more data. Perhaps that was always the intent, however, if not, is there a way to set

Re: Problem designing a camel route for an OSGi system.

2011-05-04 Thread Mark Doyle
ould be to get multiple routes into a single OSGi > application? > > > > > > -Original Message- > > From: Mark Doyle [mailto:markjohndo...@googlemail.com] > > Sent: Sun 5/1/2011 10:02 PM > > To: users@camel.apache.org > > Subject: Problem designing

Problem designing a camel route for an OSGi system.

2011-05-01 Thread Mark Doyle
I have the spring file below. It simply creates a couple of beans which are used in a camel route. The camel route is obviously configured in the context section. One of the beans is actually an OSGi service (id camelParameterProvider) which means it's used by multiple service consumer bundles (In

Re: Problem dynamically filtering a route using a bean via camel:method

2011-04-23 Thread Mark Doyle
Argh! So simple :D Thanks, Ben, worked perfectly. On 23 April 2011 15:46, Ben O'Day wrote: > put the before the closing tag... > > ___ > Ben O'Day > > On Apr 23, 2011, at 5:39 AM, Mark Doyle wrote: > >> Hi all, >> I'm having a

Problem dynamically filtering a route using a bean via camel:method

2011-04-23 Thread Mark Doyle
Hi all, I'm having a little trouble with a dynamically filtered route. My route is defined in Spring as follows:     http://camel.apache.org/schema/spring";>                                                                                                         The filter bean has a method called