Context vs Route Lifecycle

2014-01-20 Thread Tom Ellis
? Cheers, Tom Ellis

Re: Default Type Conversions

2013-10-09 Thread Tom Ellis
Thanks Christian, sounds like Claim Check is what we're doing. Cheers, Tom On 8 October 2013 22:35, Christian Müller wrote: > Hi Tom! > > Find my comments inline. > > Best, > Christian > > > > On Tue, Oct 8, 2013 at 7:19 PM, Tom Ellis wrote: > >

Default Type Conversions

2013-10-08 Thread Tom Ellis
Hi, Is there some documentation around the strategy Camel takes when deciding what to convert the body of an exchange to before sending to an endpoint? For example, I have set a File object in the body of an exchange and send this to a JMS endpoint. When the exchange is obtained from that endpoin

tokenize + group + aggregator strategy?

2013-09-20 Thread Tom Ellis
Hi Is it possible to do something like this: int myGroupSize = 100; .split(body().tokenize("\n", myGroupSize), new myAggStrategy()) ? The above doesn't work because the tokenize methods on the ValueBuilder don't take groups. The following compiles but is it the best way/can someone see if it obv

Re: Dynamic tokenizeXML tagname

2013-09-18 Thread Tom Ellis
sen wrote: > Hi > > Yeah, or if you use Camel 2.12 you can use data format component > http://camel.apache.org/dataformat-component > > And with the "dynamic to" > http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html > > On Wed, Sep 18, 2013 at 12:22 P

Re: Dynamic tokenizeXML tagname

2013-09-18 Thread Tom Ellis
, "myTokenizeXML").streaming().unmarshal().custom("myDataFormat").. On 18 September 2013 10:37, Tom Ellis wrote: > Perfect, thanks Claus. > > On 18 September 2013 10:31, Claus Ibsen wrote: >> You can use a method call expression and call a method on a pojo. And &g

Re: Dynamic tokenizeXML tagname

2013-09-18 Thread Tom Ellis
XML(String data) { > // figure out the tag name > return TokenizeLanguage.tokenizeXML(tagName, xxx); > } > > split().method(MyTokenBean.class, "myTokenizeXML").streaming(). > > On Wed, Sep 18, 2013 at 11:07 AM, Tom Ellis wrote: >> Hi Everyone, >> >&

Dynamic tokenizeXML tagname

2013-09-18 Thread Tom Ellis
Hi Everyone, Is it possible to have a dynamic tagName parameter specified for the tokenizeXML function of the Tokenizer language? For example, say as part of a route I inspect a big incoming payload and determine that it is of type Orders, so wish to set my tagName as "order". However on the same

Re: Tag with JMS Transaction for IBM MQ queue making no difference

2013-09-03 Thread Tom Ellis
Hi Ravi, Your MQ JmsComponent bean (configured via the 'mqConfig' JmsConfiguration bean) is a transacted endpoint. Routes that start with transactional endpoints will always be transactional. See http://camel.apache.org/transactional-client.html Cheers, Tom On 3 September 2013 13:41, rkarumuri

Programmatic vs URI based endpoint definition

2013-09-02 Thread Tom Ellis
ples I see utilise the URI method - is this the preferred way? Could it be possible to use the builder pattern or something to build up an endpoint, e.g. FileEndpoint dropLocation = new FileEndpoint.Builder().camelContext(getContext()).file(new File("/data")).recursive().preMove().noo

Re: Waiting for Namespace Handlers, even though they're available.

2013-08-31 Thread Tom Ellis
> > On Fri, Aug 30, 2013 at 8:32 PM, Tom Ellis wrote: >> I asked this on the JBoss Fuse forums, but I hope that maybe one of >> you have come against this: >> >> Can anyone tell me why my bundle is entering into GracePeriod here: >> >>

Re: Waiting for Namespace Handlers, even though they're available.

2013-08-30 Thread Tom Ellis
rint/camel-blueprint-2.10.4.xsd > > and then in the body, > > http://camel.apache.org/schema/blueprint";> > > On Fri, Aug 30, 2013 at 2:32 PM, Tom Ellis wrote: >> I asked this on the JBoss Fuse forums, but I hope that maybe one of >> you have come against thi

Waiting for Namespace Handlers, even though they're available.

2013-08-30 Thread Tom Ellis
I asked this on the JBoss Fuse forums, but I hope that maybe one of you have come against this: Can anyone tell me why my bundle is entering into GracePeriod here: camel-blueprint exposes the camel blueprint namespace: JBossFuse:karaf@root> list | grep 135 [ 135] [Active ] [Created ]

M2E Plugin mappings

2013-08-25 Thread Tom Ellis
Hi All, I had a go at filling out the m2e life cycle mappings for the camel maven plugins that need them. Take a look at https://issues.apache.org/jira/browse/CAMEL-6668 Cheers, Tom