You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mjanveaux <ma...@mobiledesigntech.com> on 2006/08/01 01:24:22 UTC

"No subscriptions registered"

Hello,

I'm new to activeMQ but have managed to get it integrated into my
application which uses tomcat and spring using an embedded broker.

I am running some tests (where I want to receive data from a socket and
store it on a queue determined at runtime) and, while everything seems to be
successful, it only publishes one message and then seems to block.  I'm
getting the following message in my log:

DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675 
org.apache.activemq.broker.region.Queue.GEMMS.5 - No subscriptions
registered, will not dispatch message at this time.


at which point it seems to block... here's a bit more of the log which may
help to explain what I'm doing:


INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
Accepted connection.

INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
onNewConnection: 72487616
INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
client IP: 16777343
INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
client address: 127.0.0.1
INFO 31/07/2006 16:17:58 Thread-67  com.mdt.hl7.server.ConsoleServer - New
Message: 72487616
DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675 
org.apache.activemq.store.journal.JournalMessageStore - Journalled message
add for: ID:MARKSDELL-1655-1154387838542-3:3:1:1:1, at: 0:6616
DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675 
org.apache.activemq.broker.region.Queue.GEMMS.5 - No subscriptions
registered, will not dispatch message at this time.


Can anybody give me some insight into what may be happening?   Do I have to
have a consumer registered to pull messages off this queue before sending
messages to it?

Any help would be appreciated, thanks.

Mark
-- 
View this message in context: http://www.nabble.com/%22No-subscriptions-registered%22-tf2030689.html#a5585971
Sent from the ActiveMQ - User forum at Nabble.com.


Re: "No subscriptions registered"

Posted by James Strachan <ja...@gmail.com>.
On 8/1/06, mjanveaux <ma...@mobiledesigntech.com> wrote:
>
> Thanks for the response James.
>
> I found out today that the problem wasn't with ActiveMQ but with the fact
> that the process that was sending messages to my application was waiting on
> an ack before sending more messages.  So it wasn't ActiveMQ that was
> blocking, but the sending application.
>
> I've also tried to get JMX to work but nothing is showing up in jconsole and
> I'm not sure why.  - Any special steps required to get this going when
> working under tomcat with an embedded broker ?

The easiest thing is to try running activemq via the 'activemq'
command then JMX just works. You might have to fiddle a bit to get
JMX-in-Tomcat working


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: "No subscriptions registered"

Posted by mjanveaux <ma...@mobiledesigntech.com>.
Thanks for the response James.

I found out today that the problem wasn't with ActiveMQ but with the fact
that the process that was sending messages to my application was waiting on
an ack before sending more messages.  So it wasn't ActiveMQ that was
blocking, but the sending application.

I've also tried to get JMX to work but nothing is showing up in jconsole and
I'm not sure why.  - Any special steps required to get this going when
working under tomcat with an embedded broker ?
-- 
View this message in context: http://www.nabble.com/%22No-subscriptions-registered%22-tf2030689.html#a5601915
Sent from the ActiveMQ - User forum at Nabble.com.


Re: "No subscriptions registered"

Posted by James Strachan <ja...@gmail.com>.
It just sounds like you are publishing to a queue which has no consumers.

e.g. try looking at the queues and the available consumers using JMX
http://incubator.apache.org/activemq/jmx.html

On 8/1/06, mjanveaux <ma...@mobiledesigntech.com> wrote:
>
> Hello,
>
> I'm new to activeMQ but have managed to get it integrated into my
> application which uses tomcat and spring using an embedded broker.
>
> I am running some tests (where I want to receive data from a socket and
> store it on a queue determined at runtime) and, while everything seems to be
> successful, it only publishes one message and then seems to block.  I'm
> getting the following message in my log:
>
> DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675
> org.apache.activemq.broker.region.Queue.GEMMS.5 - No subscriptions
> registered, will not dispatch message at this time.
>
>
> at which point it seems to block... here's a bit more of the log which may
> help to explain what I'm doing:
>
>
> INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
> Accepted connection.
>
> INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
> onNewConnection: 72487616
> INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
> client IP: 16777343
> INFO 31/07/2006 16:17:58 Thread-66  com.mdt.hl7.server.ConsoleServer -
> client address: 127.0.0.1
> INFO 31/07/2006 16:17:58 Thread-67  com.mdt.hl7.server.ConsoleServer - New
> Message: 72487616
> DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675
> org.apache.activemq.store.journal.JournalMessageStore - Journalled message
> add for: ID:MARKSDELL-1655-1154387838542-3:3:1:1:1, at: 0:6616
> DEBUG 31/07/2006 16:17:58 ActiveMQ Transport: tcp:///127.0.0.1:1675
> org.apache.activemq.broker.region.Queue.GEMMS.5 - No subscriptions
> registered, will not dispatch message at this time.
>
>
> Can anybody give me some insight into what may be happening?   Do I have to
> have a consumer registered to pull messages off this queue before sending
> messages to it?
>
> Any help would be appreciated, thanks.
>
> Mark
> --
> View this message in context: http://www.nabble.com/%22No-subscriptions-registered%22-tf2030689.html#a5585971
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/