dannysh
asked on
Simple JMS quuestion
Hi all
Can subscriber subscribe messages that published to the Queue befor he asked to subscribe messages? I need to know if it's configurable.
Thanks
Can subscriber subscribe messages that published to the Queue befor he asked to subscribe messages? I need to know if it's configurable.
Thanks
ASKER
Hi Nir
What I mean to ask is if subscriber can consume messages that where published to the topic before it connect that topic as subscriber?
Danny
What I mean to ask is if subscriber can consume messages that where published to the topic before it connect that topic as subscriber?
Danny
ASKER
Is it possible control this via the setTimeToLive() method of topicPublisher class? What happen to a message that have TTL of 60 seconds and after 30 seconds subscriber register himself to that topic? will he get that message even that he register after the message sent to that topic?
Danny
Danny
Hi Danny,
For retrieving all messages (including ones that you were inactive)on topic, you should subscribe as durable subscriber.
Offcourse if a message have expired, you won't get it.
Hope it help.
Nir
For retrieving all messages (including ones that you were inactive)on topic, you should subscribe as durable subscriber.
Offcourse if a message have expired, you won't get it.
Hope it help.
Nir
ASKER
Hi Nir
Do you mean expired after time to live? By default time to live value is set to zero (from documentation) which means unlimited time am I right?
What does durable means? Isn't it only for cases when the server is falling down and then up?
Danny
Do you mean expired after time to live? By default time to live value is set to zero (from documentation) which means unlimited time am I right?
What does durable means? Isn't it only for cases when the server is falling down and then up?
Danny
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot Nir.
BTW where are you from?
BTW where are you from?
I am glad I could help you :-)
If you want to correspond
nirp_98@yahoo.com
If you want to correspond
nirp_98@yahoo.com
I don't think I understand what you are trying to ask.
you can "publish" messages to topic/queue and you can become listener to messages destinate to specfic topic/queue (this is to "subscribe" to this specfic topic/queue).
Note that the subscribe/publish words, there proper use is in context of topic and not of queue.
In general Object can make himself listener (subscribe himself) and subscribe other object before/after he subscribe himself I have alreday done it.
Best regards
Nir