Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 51623 invoked from network); 11 May 2006 06:11:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 06:11:11 -0000 Received: (qmail 84849 invoked by uid 500); 10 May 2006 21:05:08 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 84797 invoked by uid 500); 10 May 2006 21:05:08 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 84734 invoked by uid 99); 10 May 2006 21:05:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 14:05:08 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 14:05:05 -0700 Received: by py-out-1112.google.com with SMTP id x31so43187pye for ; Wed, 10 May 2006 14:04:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gC12POCfUabuW2xJaZisbLv3haKinBXFT+LXJVah1Q50+CK2mD+FTtYk7k7b1YnjWoJpz2l37DLicLXx5Z0qy0W1YOkmAFh8R2szewgz5SiZvW7jLKoISMubWcwnMiOGiWWOtpyBHXs1cO+tKZMxdu7X6LvFSo3D1nfb8s6TxEI= Received: by 10.35.97.17 with SMTP id z17mr83606pyl; Wed, 10 May 2006 14:04:44 -0700 (PDT) Received: by 10.35.111.19 with HTTP; Wed, 10 May 2006 14:04:44 -0700 (PDT) Message-ID: Date: Wed, 10 May 2006 14:04:44 -0700 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Getting a list of active topics from a JMS client In-Reply-To: <4328573.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4323409.post@talk.nabble.com> <4327195.post@talk.nabble.com> <4328573.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 5/10/06, chris24 wrote: > > How would I get access to a broker object or a region object in my client > code? I currently connect to the standalone broker like this (using the > default jndi properties with some new topics): > // Obtain a JNDI connection > mJndi =3D new InitialContext(); > > // Look up a JMS connection factory > TopicConnectionFactory conFactory =3D > (TopicConnectionFactory)mJndi.lookup("TopicConnectionFactory"); > > // Create a JMS connection > TopicConnection connection =3D > conFactory.createTopicConnection(); See the examples here using Java or Spring... http://activemq.org/How+do+I+embed+a+Broker+inside+a+Connection -- James ------- http://radio.weblogs.com/0112098/