Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E896495A3 for ; Mon, 19 Mar 2012 16:59:39 +0000 (UTC) Received: (qmail 12288 invoked by uid 500); 19 Mar 2012 16:59:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 12260 invoked by uid 500); 19 Mar 2012 16:59:39 -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 12252 invoked by uid 99); 19 Mar 2012 16:59:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 16:59:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.30.239.207] (HELO nm33-vm7.bullet.mail.bf1.yahoo.com) (72.30.239.207) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Mar 2012 16:59:32 +0000 Received: from [98.139.212.152] by nm33.bullet.mail.bf1.yahoo.com with NNFMP; 19 Mar 2012 16:59:10 -0000 Received: from [98.139.211.163] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 19 Mar 2012 16:59:10 -0000 Received: from [127.0.0.1] by smtp220.mail.bf1.yahoo.com with NNFMP; 19 Mar 2012 16:59:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1332176350; bh=2WIGxNYxBHysr7yMRM8JpccX0cmKmVARjIgCZ3Wvjek=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=Ixq+AjQynn27IDCzQfowLaztyysVa3YrYuuHIeeIAiDPFurRkuf2kdPOrxcIeemxdALezSA8zri0dr1IVN4t/9hMwpsFWZSsCmouSiaJ7aDLiC3fw5lPzJTURVFqh/mQLE9R/Rtoh7aY95VbDGQdkIXjBGLBUP5NyftzvF5HNc4= X-Yahoo-Newman-Id: 863610.31788.bm@smtp220.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: PxJ1rYIVM1nylTXYn40MkEOoVrOOSFSTbkeW8ehAe12xosi plgn7pPjucInVN2ia4FcvB0a4.AMlvuUuvGrR414k9KEajM3QcKeeO0Dhi_r .7CMrSmCm8H4HXgUKL8XAawCAkf93yGG6Kf.fvY.lBJP80IFA_XMiy_edViu QDrlEUJ_E5VZxaJziazdHKuxmN4OoxWq_i.UfmPrHFpYlTMnxL4cW4hjhRKN 7FcTYEWuJDswh4gjy1WSyPH2zLBZlRZDJrHL68T1k2hBxP0LfHbggwmJQdov KGTUbnNr5UwYWmQkLVISnlNHio.953xT.TIgYq2z7Y1XGOLDpDoxOWWozM7m nKj_li7JS1S8HbrO6CvR13BYZP05Fnb65pEVvj29EZcEm7tFulcAyqltMSn_ rTpXjGdAN6MpJF_txX46ncklQN2BUbcZvJSKhRplsyjxSCEG52AuVmIDTcy. gPQ-- X-Yahoo-SMTP: 8kRmXwOswBB.yRvvqtEQRKZq9Pef54wYVoI- Received: from [1.1.1.15] (marcelojabali@68.8.175.163 with plain) by smtp220.mail.bf1.yahoo.com with SMTP; 19 Mar 2012 09:59:10 -0700 PDT Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: Easiest way to (pre-)fill/add new msgs into an ActiveMQ server? From: Marcelo Jabali In-Reply-To: Date: Mon, 19 Mar 2012 09:59:10 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <07200006-AD74-446F-8A9F-FA7EC0AE6DC5@yahoo.com> References: <305606.48907.bm@smtp153.mail.ukl.yahoo.com> <24C7DE29-FB45-4F25-B625-82B46EBD2F97@fusesource.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org Hi Ben, Like Thorsten and Jaskirat said you have a few options but you can also = run any of those samples shipped with ActiveMQ as well. Have a look at $AMQ_HOME/example and you can easily run an Ant script = with the options described on the build.xml file where you can configure = the broker URL, destination, persistence, etc. Hope this helps, -Marcelo On Mar 19, 2012, at 9:15 AM, jaskirat singh wrote: > Hi Ben > I always use Java client to send test messages. Write any client code = in > your language and use command line to control it. >=20 > Thanks > Jaskirat >=20 > On Mon, Mar 19, 2012 at 9:02 AM, Torsten Mielke = wrote: >=20 >> Hello Ben, >>=20 >> You have a couple of options for sending messages to the broker: >> - Use the web console >> - use JMX operation (e.g. via JConsole) >> - use other external tools that aren't provided by ActiveMQ like = HermesJMS >> - write you own little application >>=20 >>=20 >>> I prefer a batch script where all header fields and the payload are = can >> be entered directly for each msg. >>=20 >> There is no such tool shipped with ActiveMQ. However you could write = one >> yourself using any scripting language (e.g. Perl, Ruby) and the STOMP >> protocol. >>=20 >>=20 >> Torsten Mielke >> torsten@fusesource.com >> tmielke@blogspot.com >>=20 >>=20 >> On Mar 19, 2012, at 3:39 PM, Ben Stover wrote: >>=20 >>> Assume I started a new installed ActiveMQ server on a new server = machine. >>>=20 >>> Now I want to pre-fill (e.g. for presentation or testing purposes) = this >> ActiveMQ server with a couple of >>> sample msgs. >>>=20 >>> What is the easiest way to do that? >>> I don't want to do this manually through the browser interface. >>>=20 >>> I prefer a batch script where all header fields and the payload are = can >> be entered directly >>> for each msg. >>>=20 >>> How can I do this in detail? >>> How would such a command look like? >>>=20 >>> Thank you >>> Ben >>=20 >>=20 >>=20 >>=20