Hello James,

I was successful in adding the aggregation feature, and have filed/included
patches here:

https://issues.apache.org/activemq/browse/CAMEL-413

Essentially, if you add <aggregate>true</aggregate>, then it will propagate
this to the Main.java as a parameter during the maven build.  The
Main.javawill (in additional to the normal function) recognize this
parameter and
fabricate a new CamelContext and add the route definitions with the only
purpose being DOT generation.  The routes should not be started again as
this fabricated context returns false for the shouldStartRoutes() method.

Please take a look and let me know if the patch is acceptable.  It appears
to be very useful for my approach to camel unit testing and usage.

Thank you,

Kevin

On Sat, Mar 29, 2008 at 10:11 AM, Kevin Ross <[EMAIL PROTECTED]> wrote:

> I bumped into another issue, and filed a patch CAMEL-412.
>
> Thanks for taking a shot at this, but it wasn't quite what I expected.
> Nonetheless, I think your solution has merit for the way most people may use
> camel.
>
> I'm looking for one graph of all of them aggregated together.  I have them
> broken into pieces to unit test them, but want to visualize them as a whole.
>
> Based on your lead, I'll take a shot at this, perhaps adding a parameter
> such as <aggregate>true</aggregate> or something of that nature.  I'll let
> you know if I can make my way through it, I'm still a bit new to camel.
>
> Thank you,
>
> Kevin
>
>
> On Fri, Mar 28, 2008 at 4:39 AM, James Strachan <[EMAIL PROTECTED]>
> wrote:
>
> > On 28/03/2008, James Strachan <[EMAIL PROTECTED]> wrote:
> > > On 27/03/2008, Kevin Ross <[EMAIL PROTECTED]> wrote:
> > >  > Just a quick follow up, we are back on this and tried:
> > >  >
> > >  >  mvn org.apache.camel:camel-maven-plugin:dot
> > >  >
> > >  >  With the same result.  I'll look at combining them manually, I'd
> > really like
> > >  >  get the visual as the routes are getting complex.
> > >
> > >
> > > I've raised this JIRA
> > >  https://issues.apache.org/activemq/browse/CAMEL-406
> > >
> > >  after noodling the code I think it might be quite easy to fix - am
> > >  just experimenting with a patch...
> >
> > It turned out to be a bit more complex than I thought :) But I've
> > committed a fix to trunk - please refer to the comment on the JIRA for
> > more details of how to try it out etc...
> >
> > https://issues.apache.org/activemq/browse/CAMEL-406
> >
> > Could you grab trunk, build it and see if it works for your projects
> > please?
> >
> > --
> > James
> > -------
> > http://macstrac.blogspot.com/
> >
> > Open Source Integration
> > http://open.iona.com
> >
>
>

Reply via email to