Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 11993 invoked from network); 25 Jul 2008 10:21:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2008 10:21:58 -0000 Received: (qmail 4739 invoked by uid 500); 25 Jul 2008 10:21:58 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 4667 invoked by uid 500); 25 Jul 2008 10:21:58 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 4656 invoked by uid 99); 25 Jul 2008 10:21:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 03:21:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 64.233.184.238 as permitted sender) Received: from [64.233.184.238] (HELO wr-out-0506.google.com) (64.233.184.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 10:21:01 +0000 Received: by wr-out-0506.google.com with SMTP id 50so2468184wri.2 for ; Fri, 25 Jul 2008 03:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NmBQHD+gxJDwKyyheeeV57Lfj3orIfE5OtHJAcgQfiY=; b=HFHLTduP/YIvU9dlz4bK0k4okgUX48Ftn/UnrnVrsi0fWYgMRqlSxMpEvGjIuQi/qg 3zhtl/5yWy0ts5egok6hOmvUDLJ391VeD5ggk1RyGAIw5xO6RDtMxXNGkmg0J06VvQ54 EHKpAynQN0rWdvBJho9oUtzwKLwT68UPXd0FE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FvcYi5ikOS+4T0ZHmGNG8WIUeTWpOFJS/W+7yxHOxOvm1UaT6C+Uscp+a5ZjScS93B +ECEL3RA+jetNjGWpvfaCLUtFzN+69ngausml1yRoNZdhk0/24E+S6n2/z6uRD3bgL1P bBD4h6CnIZHu1TvM1uzDYzmXejIKPBkpkoWXM= Received: by 10.90.55.9 with SMTP id d9mr1361343aga.67.1216981269379; Fri, 25 Jul 2008 03:21:09 -0700 (PDT) Received: by 10.90.117.12 with HTTP; Fri, 25 Jul 2008 03:21:09 -0700 (PDT) Message-ID: Date: Fri, 25 Jul 2008 11:21:09 +0100 From: "James Strachan" To: camel-dev@activemq.apache.org Subject: Re: an camel route view In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48895721.8090304@cox.net> <18647115.post@talk.nabble.com> <18648393.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org BTW one question about the code. I saw in RouteContentProvider (which after my patch is now in RouteContentProviderSupport :) this code... public RouteNode getNodeData(RoutesStore routesTempStore, RouteNode from, ProcessorType processorType) { RouteNode processorNodeData = routesTempStore.getNodeData(processorType); // ^_^ pls let me use camel utils UuidGenerator uuidGenerator = new UuidGenerator("routeview"); String connectionString = uuidGenerator.generateSanitizedId(); RouteConnection routeConnection = new RouteConnection(from, connectionString, processorNodeData); The uuidGenerator is used to create an ID for the route node right? If you can get access to the underlying Camel AST route node (ProcessorType) then you can invoke the idOrCreate() method which will return the configured ID or create a new one for that ProcessorType node. This can then be handy looking up things associated with a node like working with the debugger, or looking at lists of message exchanges associated with a particular node in the route etc. Not a huge biggie, but probably worth using going forward; particularly if we wanna integrate with the Tracer / Debugger -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com