Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 32105 invoked from network); 4 Feb 2008 15:23:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 15:23:14 -0000 Received: (qmail 19126 invoked by uid 500); 4 Feb 2008 15:23:05 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 19107 invoked by uid 500); 4 Feb 2008 15:23:05 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 19098 invoked by uid 99); 4 Feb 2008 15:23:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 07:23:05 -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; Mon, 04 Feb 2008 15:22:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JM39d-0001Gy-LJ for users@activemq.apache.org; Mon, 04 Feb 2008 07:22:41 -0800 Message-ID: <15268990.post@talk.nabble.com> Date: Mon, 4 Feb 2008 07:22:41 -0800 (PST) From: tbenge To: users@activemq.apache.org Subject: Re: Active MQ broker embedded with spring configuration problems In-Reply-To: <15253117.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: todd.benge@gmail.com References: <15253117.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I ran into the same problem. The networkConnectors need to be first in the XML declaration. Michal Singer wrote: > > Hi. I am trying to raise an embedded Active MQ broker using spring > configuration file. I work with spring 2.0.6 & Active MQ 5.0.0. The only > way that works is this: > > > jmxDomainName="org.apache.activemq"/> > > > /> > > > > With this way i have a few problems: > 1. how do i define the active mq configuration file. i can't see any way? > 2. I am trying to define: amq:networkConnectors but I get the following > error - > org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was > found starting with element 'amq:networkConnectors'. One of > '{WC[##other:"http://activemq.org/config/1.0"]}' is expected. > > I use the following namespace and according to the documentation this > element should work: > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.org/config/1.0 > http://activemq.apache.org/snapshot-schema/activemq-core-5.0-SNAPSHOT.xsd > > Any help would be highly appreciated. > Thanks > > -- View this message in context: http://www.nabble.com/Active-MQ-broker-embedded-with-spring-configuration-problems-tp15253117s2354p15268990.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.