Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 21771 invoked from network); 7 Oct 2010 09:31:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 09:31:09 -0000 Received: (qmail 14545 invoked by uid 500); 7 Oct 2010 09:31:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 14285 invoked by uid 500); 7 Oct 2010 09:31:07 -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 14267 invoked by uid 99); 7 Oct 2010 09:31:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 09:31:06 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 09:31:02 +0000 Received: by bwz16 with SMTP id 16so450896bwz.2 for ; Thu, 07 Oct 2010 02:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=MG9897eg8dbwaUViI9oxLEfuDdXDURw/4YSJllfqO6U=; b=WbRWKJE3EVyr9zUKlEebefOPxmy1ZnPPjoipL5H53V9gKvwnoD340FltlwrTFi2qZN gqzwgImh0aZoXMnpNOf6CfvLn5nO1+NriIHqe+EMqr2fGmWKbkT8BUhEMjibjkKjGkHJ iW2Kz70Jm9I2r3EgK0YYHUR/6i3sS4HdAt0zY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=jVWQyXrYZprkM5KC/htOzu4jmOXiXirA97Uor8U3ZpPttg1er+XO9wUeV/N4i5Rg4g L+EpRrluB+0cyl8hy/u9gZFFtumHWK+9Y+8DThKyltYIoDybaWBD4Juzz6tMlWfyxldW S75TEv9nSes9SnWaPtOYhFphGXlSGrQmHWsBQ= MIME-Version: 1.0 Received: by 10.204.50.204 with SMTP id a12mr441043bkg.117.1286443838936; Thu, 07 Oct 2010 02:30:38 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.204.120.198 with HTTP; Thu, 7 Oct 2010 02:30:38 -0700 (PDT) In-Reply-To: References: <1286406273559-2965936.post@n4.nabble.com> Date: Thu, 7 Oct 2010 11:30:38 +0200 X-Google-Sender-Auth: PC-yzv0H91DXVEkEwFVOP_IGicE Message-ID: Subject: Re: Newbie Question about Plugins From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, you just need to add your JAR to the lib/ folder and it will be picked by the broker on startup. For configuring you add your bean inside the tab like We'll be looking into fixing plugins attribute problem. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Oct 7, 2010 at 1:20 AM, Allen Reese wrote: > The plugins=3D attribute is broken in 5.4.1: > https://issues.apache.org/activemq/browse/AMQ-2939 > > That syntax works in 5.3.2. > > Unfortunately, I have never tried the syntax, so I'm not much h= elp there. > :( > > --Allen > > -----Original Message----- > From: Mentor11 [mailto:DHagenBln@aol.com] > Sent: Wednesday, October 06, 2010 4:05 PM > To: users@activemq.apache.org > Subject: Newbie Question about Plugins > > > Hi everyone, > I want to develop a simple plugin for ActiveMQ, but following the example= s on http://activemq.apache.org/developing-plugins.html > doesn't get me anywhere. > My Plugin doesn't do anything it's just a MyPlugin.class implementing Bro= kerPlugin and a MyBroker.class extending BrokerFilter with a call to super(= broker). So the following Questions are more about getting ActiveMQ to incl= ude MyPlugin rather than anything complicated. > So my first Question is where do I have to put the classes so that active= mq finds them on startup? > > My Second Question is where can I add the beans pointing to my Plugin? > > I tried adding plugins=3D"#MyPlugin" in the broker tab but I get followin= g error > > Java Runtime: Sun Microsystems Inc. 1.6.0_20 C:\Programme\Java\jdk1.6.0_2= 0\jre > =A0Heap sizes: current=3D15872k =A0free=3D12056k =A0max=3D506816k > =A0 =A0JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.act= ivemq.UseDedicatedTaskRunner=3Dtrue > -Djava.util.logging.config.file=3Dlogging.properties > -Dactivemq.classpath=3DC:\Programme\apache-activemq-5.4.1\bin\../conf;C:\= Programme\apache-activemq-5.4.1\bin\../conf; > -Dactivemq.home=3DC:\Programme\apache-activemq-5.4.1\bin\.. > -Dactivemq.base=3DC:\Programme\apache-activemq-5.4.1\bin\.. > ACTIVEMQ_HOME: C:\Programme\apache-activemq-5.4.1\bin\.. > ACTIVEMQ_BASE: C:\Programme\apache-activemq-5.4.1\bin\.. > Loading message broker from: xbean:conf/activemq.xml > ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Li= ne > 34 in XML document from file > [C:\Programme\apache-activemq-5.4.1\conf\activemq.xml] is invalid; nested= exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: > Attribute 'plugins' is not allowed to appear in element 'broker'. > java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Li= ne > 34 in XML document from file > [C:\Programme\apache-activemq-5.4.1\conf\activemq.xml] is invalid; nested= exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: > Attribute 'plugins' is not allowed to appear in element 'broker'. > > So plugins is not an allowed atrribute despite what's written on the link= posted above?! > I also tried adding my plugin with plugins tag and I got this Error Inval= id content was found starting with element 'plugin'. One of '{WC[##other:"h= ttp://activemq.apache.org/schema/core"]}' is expected. > > These Error are not that the class files can't be found but syntax errors= right? > So are the examples of the Website wrong? > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Newbi= e-Question-about-Plugins-tp2965936p2965936.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >