You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Christopher Mihaly <cm...@hotmail.com> on 2006/07/24 17:11:53 UTC

What does an offline subscription mean?

I have a subscription that is OFFLINE.   When I look at the subscription
through jconsole, is shows OFFLINE as the connectionID.  It also has a lot
of messages pending and enqueued.     What does this mean?  

If I run the client that owns this subscription, it only gets the messages
that have recently been issued, it dose not get any of the 1665 messages
that were pending and the subscirption remains offline.    This seems wrong,
shouldn't a subscirption receive all the messages that are waiting for it
when it that subscription is opened the next time?  And if not, why does it
even bother to hold pending messages if you cannot get them?

   Chris

-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5469385
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by James Strachan <ja...@gmail.com>.
On 7/25/06, Christopher Mihaly <cm...@hotmail.com> wrote:
>
>
>
>   I will try, but this one is a llittle harder because I think you may have
> to leave the subscrition off-line for some period of time, before it gets
> stuck.  But I'll see if I can get this to be repeatable.

Cool, thanks.

Even if a unit test takes a long time to run - as soon as it can
repeatably reproduce a bug then its much easier for us to fix...

http://incubator.apache.org/activemq/support.html

-- 

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

Re: What does an offline subscription mean?

Posted by Christopher Mihaly <cm...@hotmail.com>.


  I will try, but this one is a llittle harder because I think you may have
to leave the subscrition off-line for some period of time, before it gets
stuck.  But I'll see if I can get this to be repeatable.

   Chris


James.Strachan wrote:
> 
> Am a little confused what your system is doing - can you create a
> JUnit test case to reproduce whats going on?
> 
> On 7/24/06, Christopher Mihaly <cm...@hotmail.com> wrote:
>>
>>   Oh yes, it is now worse.  It is not acive and off-line.  There are no
>> connections to the subscription, but now when you try to create a
>> subscription, it tells you there is already a consumer.  So it is active,
>> offline and accumulating messages.   My biggest fear is that I also have
>> a
>> problem that a durable subscriber doesn't fetch his messages in a short
>> period of time, the entire messaging system comes to a halt....
>> --
>> View this message in context:
>> http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5474142
>> Sent from the ActiveMQ - User forum at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5480431
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by James Strachan <ja...@gmail.com>.
Am a little confused what your system is doing - can you create a
JUnit test case to reproduce whats going on?

On 7/24/06, Christopher Mihaly <cm...@hotmail.com> wrote:
>
>   Oh yes, it is now worse.  It is not acive and off-line.  There are no
> connections to the subscription, but now when you try to create a
> subscription, it tells you there is already a consumer.  So it is active,
> offline and accumulating messages.   My biggest fear is that I also have a
> problem that a durable subscriber doesn't fetch his messages in a short
> period of time, the entire messaging system comes to a halt....
> --
> View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5474142
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

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

Re: What does an offline subscription mean?

Posted by Christopher Mihaly <cm...@hotmail.com>.
  Oh yes, it is now worse.  It is not acive and off-line.  There are no
connections to the subscription, but now when you try to create a
subscription, it tells you there is already a consumer.  So it is active,
offline and accumulating messages.   My biggest fear is that I also have a
problem that a durable subscriber doesn't fetch his messages in a short
period of time, the entire messaging system comes to a halt....  
-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5474142
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by Christopher Mihaly <cm...@hotmail.com>.
The original test case was a perl client talking to a  WebService on tomcat
in Java that talks to the messsage server in Java.   Since then, I created a
pure java example directly to the JMS server that has the same clientid and
acts exactly the same as in the SOAP case.  It basically just removes the
perl and the SOAP components.

   Chris

-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5474085
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by James Strachan <ja...@gmail.com>.
Are you using the Java client? The name perlTester made me wonder if
you were using the Perl Stomp client

On 7/24/06, Christopher Mihaly <cm...@hotmail.com> wrote:
>
> Okay, just to convince myself, I stepped through the program, the connection
> id is perlTester, when it connects you see the connection.  The subscription
> is Test1, so that is identical to the durable subscription which is
> perlTester_Test1 and is also what is set as the clientId and
> subscriptionName in jconsole for that off-line subscription.
>
> Also, I do get any mesages that were sent recently to that ProductionEvents
> topic that the subscription is for.
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5470330
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

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

Re: What does an offline subscription mean?

Posted by Christopher Mihaly <cm...@hotmail.com>.
Okay, just to convince myself, I stepped through the program, the connection
id is perlTester, when it connects you see the connection.  The subscription
is Test1, so that is identical to the durable subscription which is
perlTester_Test1 and is also what is set as the clientId and
subscriptionName in jconsole for that off-line subscription.

Also, I do get any mesages that were sent recently to that ProductionEvents
topic that the subscription is for.





-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5470330
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by Christopher Mihaly <cm...@hotmail.com>.
  It is the exact same program.    It sets the clientId on the connection and
then uses the same subscription name and then tries to retrieve messages. 

   Chris

-- 
View this message in context: http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5470173
Sent from the ActiveMQ - User forum at Nabble.com.


Re: What does an offline subscription mean?

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Are you sure are using the same durable subscription?  It has to use the
same connection client id and subscription name.

On 7/24/06, Christopher Mihaly <cm...@hotmail.com> wrote:
>
>
> I have a subscription that is OFFLINE.   When I look at the subscription
> through jconsole, is shows OFFLINE as the connectionID.  It also has a lot
> of messages pending and enqueued.     What does this mean?
>
> If I run the client that owns this subscription, it only gets the messages
> that have recently been issued, it dose not get any of the 1665 messages
> that were pending and the subscirption remains offline.    This seems
> wrong,
> shouldn't a subscirption receive all the messages that are waiting for it
> when it that subscription is opened the next time?  And if not, why does
> it
> even bother to hold pending messages if you cannot get them?
>
>    Chris
>
> --
> View this message in context:
> http://www.nabble.com/What-does-an-offline-subscription-mean--tf1992966.html#a5469385
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com