Defining routes dynamically

2010-11-16 Thread Craig Taylor
match does not predispose other matches ]. When making use of filter() I'm also unable to determine how I can have multiple filters and wire them so that they occur sequentially. Suggestions? -- ------- Craig Taylor ctalk...@ctalkobt.net

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

Issue w/ multi-parameter bean methods

2010-12-17 Thread Craig Taylor
public void logStart( @Header("MY_ID") Integer myId, @Header("CamelFileName") String filename ) Changing the Integer myId, and the associated setHeader to strings apparently causes this to work. I'd much prefer to use an integer id rather than a string. -- ---

Re: Issue w/ multi-parameter bean methods

2010-12-19 Thread Craig Taylor
#x27;ll try and come up with an isolated test case I can post to later. On Sat, Dec 18, 2010 at 6:23 AM, Claus Ibsen wrote: > Can you post Camel version used and the route you are using? > > > On Fri, Dec 17, 2010 at 6:42 PM, Craig Taylor > wrote: > > I'm attempting to fir

Adding throws Exception to AggregationStrategy.aggregate - Camel 2.9.0

2014-05-02 Thread Craig Taylor
ation and then additional elements on the exchanges are populated. These operations may throws exceptions (rarely) but I'd still like my exception router to handle them. Suggestions? Camel 2.9.0 is the camel version. -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Adding throws Exception to AggregationStrategy.aggregate - Camel 2.9.0

2014-05-02 Thread Craig Taylor
:-) Thanks. It's been a while since I got back into the camel world and didn't even think of that. On Fri, May 2, 2014 at 1:27 PM, Claus Ibsen wrote: > Hi > > Set the exception on the Exchange instance that you return. > > On Fri, May 2, 2014 at 7:26 PM, Craig

Preferring bean or processor invocations on a route

2014-09-17 Thread Craig Taylor
than just the result body, eg: properties and headers. I'm not aware of any means to do this within a bean() invocation. Can this be done and is there any rational of choosing one over the other? -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Need advice on application architecture with camel

2017-12-04 Thread Craig Taylor
om/Need-advice-on-application-architecture-with-camel-tp5801290.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Need advice on application architecture with camel

2017-12-04 Thread Craig Taylor
doing message driven architecture. I would recommend a > simple high level camel route (java dsl), which in-turn routes to a > destination, based on structured message, which contains enough info for > the event, including any dynamic stuff. > > > > -Original Message-

Grouped Aggregation Strategies...

2020-04-03 Thread Craig Taylor
ed Aggregators didn't yield the solution either. Thanks, -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Grouped Aggregation Strategies...

2020-04-04 Thread Craig Taylor
gt; the message body. > But there are however only one unit test for this in camel-jms, so > lets add one to camel-core. > > On Fri, Apr 3, 2020 at 11:23 PM Craig Taylor > wrote: > > > > I'm wanting to accumulate all exchanges matching a correlation expression > > (id

Re: Grouped Aggregation Strategies...

2020-04-08 Thread Craig Taylor
; > Using a unique correlation expression I get as before, 3 different back, > not a List of 3 > > M > > > On 4 Apr 2020, at 16:10, Craig Taylor wrote: > > > >>> Are you really sure as its supposed to store a List that are > > the message body. >

Seda doesn't appear to be locking when queue is full

2022-02-03 Thread Craig Taylor
r.addToQueue(SedaProducer.java:251) > ~[camel-seda-3.14.1.jar:3.14.1] > at > org.apache.camel.component.seda.SedaProducer.process(SedaProducer.java:149) > ~[camel-seda-3.14.1.jar:3.14.1] Thanks, -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Seda doesn't appear to be locking when queue is full

2022-02-03 Thread Craig Taylor
PM Jeremy Ross wrote: > I think you need to use blockWhenFull on the producer, so in your to() > call. > > On Thu, Feb 3, 2022 at 10:33 AM Craig Taylor > wrote: > > > I've got a scenario where I need to iterate through all users within a > > system and sen

Internal logging of routes

2022-04-19 Thread Craig Taylor
h (eg: to(where), body(? what addtl parameters) etc). Note that a route.toString() is not ideal in this situation. -- ------- Craig Taylor ctalk...@ctalkobt.net

Camel 2.4 Done File Error Handling

2011-03-11 Thread Craig Taylor
change all the dependent routes.. -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Camel 2.4 Done File Error Handling

2011-03-12 Thread Craig Taylor
en wrote: > On Fri, Mar 11, 2011 at 9:22 PM, Craig Taylor > wrote: > > Before I reinvent the wheel, for Camel 2.4 I'm attempting to check for > the > > following error conditions for done file handling: > > > > 1) Done file w/o corresponding regular file >

Removing exchanges from camel browse:

2011-03-16 Thread Craig Taylor
This may be something obvious but for some reason it's not registering : how to remove exchanges from a browse: endpoint after a time or count has been reached? Thanks, -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Camel 2.4 Done File Error Handling

2011-03-16 Thread Craig Taylor
this now, is to have the lock send a message to another endpoint which will maintain a list of files processed and name/value pairs. The first step in the route will then be to augment the properties based upon the list. On Sat, Mar 12, 2011 at 1:09 PM, Craig Taylor wrote: > In looking at

Problem with Multiple Camel Contexts

2011-05-05 Thread Craig Taylor
llection().getRoutes() ); context.stop(); } catch( CamelException refEx ) { --- Is this the correct approach to take to validate camel uri's at run-time? If so, am I correct in feeling there's a risk adding test routes to a running camel context? -- ---

Re: Problem with Multiple Camel Contexts

2011-05-05 Thread Craig Taylor
davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > -- --- Craig Taylor ctalk...@ctalkobt.net

JSON Usage.... - DataFormat must be specified.

2011-05-18 Thread Craig Taylor
#x27;ve tried it both with and without the JsonLibrary.XStream and am getting the same behavior. Suggestions? -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Serving static pages with JettyComponent

2011-08-18 Thread Craig Taylor
; > And then added it in the list of handlers on the uri: > "jetty:http://0.0.0.0:8083/people??handlers=staticPageHandler"; > However that didn't work either. > > Any ideas? Am I missing something simple? > > > > -- --- Craig Taylor ctalk...@ctalkobt.net

Camel 2.2 Removal of Endpoint Files

2011-09-02 Thread Craig Taylor
This is in Camel 2.2 btw (I know... I know... ) Thanks, -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Camel 2.2 Removal of Endpoint Files

2011-09-02 Thread Craig Taylor
internally that have yet to be considered "complete". If I had used a producer template to send the returned exchange to, a eg: "log:blah" would the delete processing of the file endpoint have occurred? On Fri, Sep 2, 2011 at 3:34 PM, Craig Taylor wrote: > From a file based

Re: Unable to change throttle with inflight messages

2011-09-03 Thread Craig Taylor
ve upon route start Camel inits everything and every few components support dynamic re-configuration. -- ------- Craig Taylor ctalk...@ctalkobt.net

Jetty Session documentation error.

2011-10-20 Thread Craig Taylor
Tests use HttpMessage. -- --- Craig Taylor ctalk...@ctalkobt.net

Camel SFTP tunnelling

2011-10-24 Thread Craig Taylor
Does / Are there plans for the Camel SFTP component to support SFTP over SSH tunnelling? Thanks, -- --- Craig Taylor ctalk...@ctalkobt.net

Re: How to grab a (only one) file with camel ?

2011-10-24 Thread Craig Taylor
if anyone could give > me a hint or can show me an example of a customized endpoint. > > If anybody need additional information please answer to this post. > > Greetings and thanks in advance, > Lukas > > > -- > View this message in context: > http://camel.465427.n

Camel FTP with username having embedded @ character.

2011-11-03 Thread Craig Taylor
ame from the initial URI definition and adding it as a parameter but get the same results. Any suggestions? -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Camel FTP with username having embedded @ character.

2011-11-03 Thread Craig Taylor
Additional notes: * Testing w/ %40 instead of @ in the username also fails to work. * It appears from testing with java.net.URI that %40 is supposed to be used instead of @ as it also fails with @. On Thu, Nov 3, 2011 at 2:36 PM, Craig Taylor wrote: > I'm trying to connect to hosta.mydo

Re: Camel FTP with username having embedded @ character.

2011-11-04 Thread Craig Taylor
i, then you can use the > username and password options. > > ftp:hostname?username=foo@bar&password=secret > > > > On Thu, Nov 3, 2011 at 7:36 PM, Craig Taylor wrote: >> I'm trying to connect to hosta.mydomain.com with a username of >> user@othername and

Re: Camel FTP with username having embedded @ character.

2011-11-05 Thread Craig Taylor
On Fri, Nov 4, 2011 at 11:52 AM, Donald Whytock wrote: > On Fri, Nov 4, 2011 at 10:48 AM, Donald Whytock wrote: >> This showed up with camel-mail also.  It has to do with how URIs are >> parsed.  I believe there was a JIRA. > > Looks like camel-ftp/RemoteFileConfiguration gets the user ID from th

Re: "Type com.jcraft.jsch.ChannelSftp$LsEntry not present" error when using sftp

2011-11-16 Thread Craig Taylor
Method) >        at java.lang.Class.forName(Class.java:247) >        at > sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95) >        ... 70 more > > > thanks! > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Type-com-jcraft-jsch-ChannelSftp-LsEntry-not-present-error-when-using-sftp-tp4998884p4998884.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- --- Craig Taylor ctalk...@ctalkobt.net

Re: JMX issue when using Camel in ServiceMix

2011-11-22 Thread Craig Taylor
ttp://camel.465427.n5.nabble.com/file/n5012031/jmx_local.jpg > Try connecting to karaf-root instead of jmxrmi ... Under servicemix the name is configured under /etc/org.apache.felix.karaf.management.cfg in serviceUrl. -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Date String Creation

2011-12-07 Thread Craig Taylor
> - > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > -- --- Craig Taylor ctalk...@ctalkobt.net

Re: SFTP Session

2011-12-08 Thread Craig Taylor
Camel - Users mailing list archive at Nabble.com. > -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Dynamic routing and bridgeEndpoint

2011-12-13 Thread Craig Taylor
; > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-routing-and-bridgeEndpoint-tp5072766p5072766.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- --- Craig Taylor ctalk...@ctalkobt.net

Uri Parameter A and Form Parameter A turns into an array.

2012-02-03 Thread Craig Taylor
ing an array of [3,3] when I dump the header contents instead of the previous "3". (I need to post it via form data as the page is accessed multiple ways). Was this a desired change? Any points to the ticket so I can understand the why's better? Thanks, -- -------

Re: Uri Parameter A and Form Parameter A turns into an array.

2012-02-03 Thread Craig Taylor
After further testing, An array is _not_ returned... rather a string of [3,3] ... On Fri, Feb 3, 2012 at 12:16 PM, Craig Taylor wrote: > I'm upgrading an application from 2.2 to 2.8 and ran into an issue which > may be desired behavior but, seems odd to me: > > Using the jet

camel-file : Avoiding CamelLock...

2012-03-08 Thread Craig Taylor
{ GenericFile fileEntry = pollFileExchange.getIn().getBody(GenericFile.class); filenames.add(fileEntry.getFileName()); pollFileExchange = consumerTemplate.receive(uri, 1000); } camelContext.removeEndpoints(uri); -snip-

Re: camel-file : Avoiding CamelLock...

2012-03-08 Thread Craig Taylor
done the UoW on the exchange when using the receive method. > > > On Thu, Mar 8, 2012 at 4:42 PM, Craig Taylor > wrote: > > Using 2.8, I'm polling an error directory and am wanting to validate that > > the original source file exists before displaying prompts to the en

Camel idempotent for Polling Consumer...

2012-03-13 Thread Craig Taylor
nually via the camel context and call the idempotent setter directly rather than by using a parameter but for consistency, I'd prefer to stay with the string uri's. Suggestions? -- ------- Craig Taylor ctalk...@ctalkobt.net

Re: Camel idempotent for Polling Consumer...

2012-03-14 Thread Craig Taylor
; On Tue, Mar 13, 2012 at 10:08 PM, Craig Taylor > wrote: > > Within the file2 component, noop=true specifies that idempotent=true will > > be set automatically. However, based upon a user initiated action I > need > > to poll a directory endpoint and obtain a list of file

Re: Restarting the Camel route

2012-03-19 Thread Craig Taylor
ge in context: > http://camel.465427.n5.nabble.com/Restarting-the-Camel-route-tp5578588p5578588.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- --- Craig Taylor ctalk...@ctalkobt.net

Placing and referencing DTO via exchange properties

2015-07-24 Thread Craig Taylor
ing / intended business services are already focused around usage of a DTO reference. I'm using a property rather than a header due the fact that the body itself will undergo a number of different changes). -- --- Craig Taylor ctalk...@ctalkobt.net

Re: Placing and referencing DTO via exchange properties

2015-07-24 Thread Craig Taylor
. On Fri, Jul 24, 2015 at 4:13 PM, Craig Taylor wrote: > I'm attempting the following route given a TestDTO implemented which has a > constructor / getter / setter for a name property: > > > from ("direct:testDTO") >