Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 85509 invoked from network); 18 Jan 2008 15:57:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2008 15:57:39 -0000 Received: (qmail 23654 invoked by uid 500); 18 Jan 2008 15:57:29 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 23633 invoked by uid 500); 18 Jan 2008 15:57:29 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 23621 invoked by uid 99); 18 Jan 2008 15:57:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 07:57:29 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 15:57:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JFtae-0002Rm-Gv for camel-user@activemq.apache.org; Fri, 18 Jan 2008 07:57:08 -0800 Message-ID: <14952115.post@talk.nabble.com> Date: Fri, 18 Jan 2008 07:57:08 -0800 (PST) From: DominicTulley To: camel-user@activemq.apache.org Subject: Re: Configuring a Routebuilder from activemq.xml file? In-Reply-To: <14951653.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dominic.tulley@telelogic.com References: <14923839.post@talk.nabble.com> <14951653.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Then I had another look. I moved my bean definitions to be after the entry and now it seems to work (at least, it started up!). I'll take a pop at actually making it route some messages now and see if it's really all as live as it looks. Thanks, -Dominic DominicTulley wrote: > > I gave this suggestion a go, so that I had the following: > > > > > > > > > > > > > > > I also removed from the file. Unfortunately this doesn't > seem to quite work. > I get errors indicating that a broker already exists (see below). > However, I don't have another broker running so I presume that AMQ is > deciding to make two camel instances for some reason. > It's a shame because it seemed quite a neat solution for now! > > WARN ManagementContext - Failed to start jmx connector: > Cannot bind to URL [rmi://localhost:1099/jmxrmi]: > javax.naming.NameAlreadyBoundException: > jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi] > ERROR BrokerService - Failed to start ActiveMQ JMS > Message Broker. Reason: javax.management.InstanceAlreadyExistsException: > org.apache.activemq > :BrokerName=localhost,Type=Broker > javax.management.InstanceAlreadyExistsException: > org.apache.activemq:BrokerName=localhost,Type=Broker > at > com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport. > java:452) > > > > RomKal wrote: >> >>> A RouteBuilder is not necessarily gonna be XML marshallable via JAXB; >>> so we might just wanna refer to RouteBuilder instances by ID in the >>> XML. >> >> I believe we should allow this in namespace notation. >> >> But just to solve Dominic's problem maybe instead of creating our >> context via we could simply do >> >> >>