Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 7838 invoked from network); 25 Jun 2009 04:30:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 04:30:13 -0000 Received: (qmail 94874 invoked by uid 500); 25 Jun 2009 04:30:23 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 94791 invoked by uid 500); 25 Jun 2009 04:30:23 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 94781 invoked by uid 99); 25 Jun 2009 04:30:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 04:30:23 +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, 25 Jun 2009 04:30:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MJgau-0007f9-F6 for dev@activemq.apache.org; Wed, 24 Jun 2009 21:29:52 -0700 Message-ID: <24196808.post@talk.nabble.com> Date: Wed, 24 Jun 2009 21:29:52 -0700 (PDT) From: matt walsh To: dev@activemq.apache.org Subject: Using NMS to connect to OpenMQ via stomp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: matthew.walsh@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I have had a problem connecting to OpenMQ via stomp using Apache NMS. It seems the NMS code terminates stomp frames using a 'NULL' character (as per the stomp spec), which is defined in the class StompFrameStream as follows public const char NULL = (char) 0; OpenMQ was giving me errors because it seems from my investigations that this 'NULL' is infact a double byte character and is therefore sending 2 zeros at the end of a frame. This leaves an extra NULL lying around in the stream that OpenMQ is unhappy with, breaking further commands sent for a session. I have patched the NMS source to define NULL as a byte, ie public const byte NULL = (byte) 0; This makes the problem go away for OpenMQ. I would like some advice on this. Is it acceptable for a Stomp frame to have additional NULL characters lying around as NMS seems to be doing (and thus is this a problem that should be dealt with by OpenMQ) or should NMS be patched in a way similar to what I have done here? I have attached my patched version of the 1.0 version of StompFrameStream. http://www.nabble.com/file/p24196808/StompFrameStream.cs StompFrameStream.cs -- View this message in context: http://www.nabble.com/Using-NMS-to-connect-to-OpenMQ-via-stomp-tp24196808p24196808.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.