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 1DAC81133C for ; Fri, 20 Jun 2014 20:14:54 +0000 (UTC) Received: (qmail 25839 invoked by uid 500); 20 Jun 2014 20:14:53 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 25790 invoked by uid 500); 20 Jun 2014 20:14:53 -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 25777 invoked by uid 99); 20 Jun 2014 20:14:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 20:14:53 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of burtonator2011@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 20:14:50 +0000 Received: by mail-la0-f41.google.com with SMTP id hz20so2753739lab.28 for ; Fri, 20 Jun 2014 13:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=oban6L7MF9JC7HQ7MG8MpukZ71pSzhzuOztju98Ak64=; b=VKyp+hAXFcMcLcawaQVygIiqnKry2Llsddhwxc0/CugPHw2kxRxzWqoVvb2L1/uNBa lSxc4uY9Eimq9DDRUS3vfyj86omnfAkdj5Jw+0diN5dy7LTnGw+t8BbV0OtvlaocMY60 +XyhTre1zTSubkexaui6UpLbEvqPj4Z/pWvqucFX5a6puKS2TIH+iogRH+WxZnwltVt3 Jen4j7mkEydia0oSCIgERQ+j2eNQSvQAvrbT4s5ZKWafqgKgH1HcSAnc/iicybNJzWDe 3pj2C3ylxq+ngYQfj2ugp6/QW8PZdOhBzbLbU1QxR8nzsoD7+mMnB3upzUY1Z4iUjAEM YQMA== X-Received: by 10.153.6.37 with SMTP id cr5mr4005247lad.7.1403295266533; Fri, 20 Jun 2014 13:14:26 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.112.219.231 with HTTP; Fri, 20 Jun 2014 13:14:06 -0700 (PDT) In-Reply-To: References: From: Kevin Burton Date: Fri, 20 Jun 2014 13:14:06 -0700 X-Google-Sender-Auth: UPvbpPYygmdfFhIXoH0Vkm_bpHw Message-ID: Subject: Re: Verifying an activemq configuration remotely ... To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a11349826e0761304fc4a23d5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11349826e0761304fc4a23d5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yes=E2=80=A6 definitely agree on locking down the config file. But I'm more worried about a regression at some future point. Unit tests go a long way=E2=80=A6 but I can also put in guards in the code to prevent = it from even working with a broken broker by verifying that things are sane when it connects to the broker. Seems like JMX is the way to do this=E2=80=A6 but now I'll need to figure i= t out :) Kevin On Fri, Jun 20, 2014 at 3:17 AM, Gary Tully wrote: > it is a very general requirement. > > one approach is to have some sort of ping test of broker functionality > that you require. > > deploy a camel route in the xml config. > have it do jms request/reply after it has done some validation like > produce/consume an advisory. > Then to validate ping that route. With camel you could easily expose > the same validator over http. > > But some sort of jmx monitor to validate health and locking down start > scripts and xml config > in source control goes a long way to keeping things sane. > > On 20 June 2014 04:28, Kevin Burton wrote: > > Is it possible to verify that an activemq box is deployed correctly? > > > > I'm depending on features like advisory support=E2=80=A6 so if it doesn= 't work or > > isn't enabled properly my app will break. > > > > So I'd like to connect to the queue, and die if it's not configured > > properly. > > > > Kevn > > > > -- > > > > Founder/CEO Spinn3r.com > > Location: *San Francisco, CA* > > Skype: *burtonator* > > blog: http://burtonator.wordpress.com > > =E2=80=A6 or check out my Google+ profile > > > > > > War is peace. Freedom is slavery. Ignorance is strength. Corporations a= re > > people. > > > > -- > http://redhat.com > http://blog.garytully.com > --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* Skype: *burtonator* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile War is peace. Freedom is slavery. Ignorance is strength. Corporations are people. --001a11349826e0761304fc4a23d5--