Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 35857 invoked from network); 8 Oct 2009 22:18:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 22:18:34 -0000 Received: (qmail 84949 invoked by uid 500); 8 Oct 2009 22:18:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 84920 invoked by uid 500); 8 Oct 2009 22:18:33 -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 84909 invoked by uid 99); 8 Oct 2009 22:18:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 22:18:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS 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; Thu, 08 Oct 2009 22:18:23 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mw1JC-00087d-K5 for users@activemq.apache.org; Thu, 08 Oct 2009 15:18:02 -0700 Message-ID: <25812574.post@talk.nabble.com> Date: Thu, 8 Oct 2009 15:18:02 -0700 (PDT) From: vivekarora To: users@activemq.apache.org Subject: Re: Connecting a Broker to Multiple Brokers In-Reply-To: <25757201.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gangnath@yahoo.co.in References: <25757201.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thank You for Your Help... It is working now..I am able to make a cluster of brokers. I need to ask one more thing. I am now working on the providing Authentication to the broker connections. I ma using SimpleAuthenticationplugin on the side where the broker only uses TransportConnector. I am using the foillowing code:- List ls=new ArrayList(); AuthenticationUser a = new AuthenticationUser("vivek","keviv","users"); ls.add(a); brokerService = new BrokerService(); Broker regionBroker = null; try { brokerService.setBrokerName(brokerName); brokerService.setPersistent(false); brokerService.setUseShutdownHook(false); TransportConnector tc = new TransportConnector(); tc.setConnectUri(new URI("tcp://" + brokerHost + ":" + brokerPort)); brokerService.addConnector(tc); SimpleAuthenticationPlugin sap = new SimpleAuthenticationPlugin(ls); ???????? Dont Know What to do here???????????????? After this thing I am not able to figure out how to add this SimpleAuthenticationPlugin object to the brokerService. I mean there is a way to add this so that we can say that to connect to this particular brokerService we have to use this particular credentials. Please help me regarding this....? -- View this message in context: http://www.nabble.com/Connecting-a-Broker-to-Multiple-Brokers-tp25757201p25812574.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.