From dev-return-14938-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Sun Apr 05 07:40:52 2009 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 69209 invoked from network); 5 Apr 2009 07:40:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Apr 2009 07:40:52 -0000 Received: (qmail 32239 invoked by uid 500); 5 Apr 2009 07:40:52 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 32159 invoked by uid 500); 5 Apr 2009 07:40:51 -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 32149 invoked by uid 99); 5 Apr 2009 07:40:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2009 07:40:51 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.222] (HELO mail-fx0-f222.google.com) (209.85.220.222) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2009 07:40:42 +0000 Received: by fxm22 with SMTP id 22so2215573fxm.38 for ; Sun, 05 Apr 2009 00:40:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.86.86.2 with SMTP id j2mr1953304fgb.74.1238917221622; Sun, 05 Apr 2009 00:40:21 -0700 (PDT) Date: Sun, 5 Apr 2009 09:40:21 +0200 Message-ID: <790a6e7b0904050040m70df991cg2c00efcdf0e0a256@mail.gmail.com> Subject: Stomp client for java, seems to hang? From: Johan Kindgren To: dev@activemq.apache.org Content-Type: multipart/mixed; boundary=000e0cd29722e6a3080466c9e4ec X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd29722e6a3080466c9e4ec Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've sent this question to the users-list previously but with no response. I've done a quick test where I tried to publish JMS queues via StompConnect (http://stomp.codehaus.org/StompConnect) and then use ActiveMQ as a JMS implementation for handling the published queues.Unfortunately this didn't work at all, and from spending a day in debug-mode and stepping through the Stomp implementation it seems that there are something missing. Maybe my setup is all wrong, but my short question is if anyone has tried to use ActiveMQ as a java client against StompConnect? The following setup was used: Server side: Create an instance of StompConnect and inject the ConnectionFactory of a JBoss server (Jboss Messaging). At the client side: 1. Create an instance of ActiveMQConnectionFactory and set the url to "stomp://localhost:61613". 2. Create an instance of ActiveMQQueue and set the queue-name. 3. Since we are using Spring, create a JmsTemplate and try to send a message. The ConnectionFactory seems to find the right implementation and creates a ActiveMQConnection and sets the transport layer to use the stomp package. The first thing that the ActiveMQConnection does is to send a ConnectionInfo command, but the stomp transport implementation decides that this command shouldn't be sent. Now comes the tricky part, the layer above (ResponseCorrelator) expects a response and simply hangs. Since I'm new to ActiveMQ I'm really not sure if it's possible to use the JMS-api in the above describe way. My questions are: 1. Should I be able to use the Jms api as a wrapper against the stomp protocol? 2. Has anyone used the Stomp-client implementation? Tried both ActiveMQ 5.2.0 and 5.1.0, seems to be no changes in the Stomp-implementation. I've created a testcase that shows the problem, see attached file. My test hangs in the setup, while creating a Jms session, so I'm not sure that the actual test will really work if it would get past the session-problem. /Johan --000e0cd29722e6a3080466c9e4ec--