Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 24234 invoked from network); 6 Nov 2006 15:00:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 15:00:53 -0000 Received: (qmail 13874 invoked by uid 500); 6 Nov 2006 14:57:44 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 13849 invoked by uid 500); 6 Nov 2006 14:57:44 -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 13829 invoked by uid 99); 6 Nov 2006 14:57:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 06:57:43 -0800 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 (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 06:57:28 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gh5uN-0004pZ-Sm for activemq-users@geronimo.apache.org; Mon, 06 Nov 2006 06:57:07 -0800 Message-ID: <7200017.post@talk.nabble.com> Date: Mon, 6 Nov 2006 06:57:07 -0800 (PST) From: Avinash To: activemq-users@geronimo.apache.org Subject: Problem with STOMP C++ Client connecting with a AMQ Broker having Authorization and Authentication Plugins installed MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: avianant@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, We have an AMQ Broker [4.1.0 incubator SNAPSHOT] running as a standalone java application. The AMQ Broker has Authentication and Authorization plugins installed by virtue of which only users with the correct credentials may get authenticated onto the Broker, and further Access roles and permissions with respect to users and admin have been set up using the Authorization plugin. The above broker supports both TCP and STOMP. CASE 1: When we connect using TCP and a JAVA written client, both the plugins work correctly and as expected. CASE 2: When we connect using STOMP and the Java written client: - The program stalls at "connection.start(); Does not proceed further from here... CASE 3: When we use C++ and STOMP following are our observations: [1] When connecting using the STOMP client with incorrect credentials, the AMQ Broker throws SecurityException [which is expected], however the STOMP client receives a message 'CONNECTED' [2] The STOMP client does not get notified that there was a SecurityException while connecting [when connecting using wrong credentials]. Questions are: [1] Why does the program execution not proceed in case of CASE 2 ? [2] How does the C++ STOMP client get notified of any Authentication or Authorization exceptions that may be generated at the AMQ Broker end ? Thanks in anticipation. Aditya -- View this message in context: http://www.nabble.com/Problem-with-STOMP-C%2B%2B-Client-connecting-with-a-AMQ-Broker-having-Authorization-and-Authentication-Plugins-installed-tf2582789.html#a7200017 Sent from the ActiveMQ - User mailing list archive at Nabble.com.