activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Kindgren <>
Subject Stomp client for java, seems to hang?
Date Sun, 05 Apr 2009 07:40:21 GMT
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 ( 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
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

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


  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message