Hi !

At 04:22 28.6.01 +0200, you wrote:
>Hi, All
>
>In the JMS specification, it is said that:
>
>JMS semantics only apply once the provider has reached a 'steady state' 
>with respect to a new client.
>I feel it is difficult to understand its true meaning. I have such a question:
>
>(Q1) Publish P at time X published a message M of which its time to live 
>is set to Y (So, M's expiration time is X+Y).
>And then at time Z ( X < Z < X+Y) a subscriber subscribed to the 
>corresponding topic, what's the result?
>I mean whether this subscriber still has a chance to get a copy of message M.

Hmm.. This is a tricky question, right ? :))
So the think is that a subscriber will not get it's message if the message 
expires regardless if some other subscribers got it.

>(Q2) According to what Andreas said: "When you publish to a topic without 
>a subscriber, the messages are
>dropped. Either start your subscriber first or use a durable subscriber", 
>It seems that the router
>will drop this message if the topic has no subscribers EVEN the message 
>didn't expired, isn't it?

Yes.

>(Q3) For routing networking, the problem becomes more complex. Also 
>according to what Andreas said:
>
>"If the connection goes down, all remote subscriptions for the SPECIFIC 
>ROUTERS are deleted, except there is
>a static route for those routers. Then they will survive and messages will 
>be stored and forwarded on the
>next connect. A local router never stores remote subscription information 
>persistently, hence, on startup, it
>doesn't know anything about remote durable subscribers. It gets this 
>information on the first connect to the
>remote router."

So, create durable subscribers and static routes between routers.

>(Q3#1)    In above sentence, SPECIFIC ROUTERS refer to the routers on 
>which the publishers connected to
>(I call it PUBLISHING ROUTERs), isn't it?

I think so..


>(Q3#2)    If the remote SUBSCRIBING router shutdown or its connection 
>shutdown, the subscription information
>IN the PUBLISHING routers will be deleted immediately, isn't it? Actually, 
>I want to know what is the
>relationship between "the dispearing of the remote SUBSCRIPTING routers" 
>and " the subscription information
>DELETIONS in the PUBLISHING routers".

When the connection drops the information about the remote router are 
deleted. If they are deleted immediately or after some time I don't know. 
Andreas should . :))


>(Q3#3)    What is the implication of the usage of STATIC ROUTEs? I think 
>it is used as a complement of
>"the subscription  information DELETIONS in the PUBLISHING routers", am i 
>right? And how dose work?
>Is this the main reason of the existence of STATIC ROUTEs?

Yes, it is. The reason is that if you have a static route to a remote 
router you can send messages to it regardless if the remote router is 
connected to local router or not. If you don't have a static route then you 
will get an Exception saying that the remote router is unknown or something 
like that.
Try it out.

>By the way, all above concerns only durable subscription. Of course, if 
>the different points on the above questions
>between Durable and Non-durable subscription could be provided, I am very 
>appreciate.
>
>Thanks very much!
>
>yangyuexiang
>

Best regards,
Kovi

>------------------------------------------------------
>SwiftMQ developers mailing list * http://www.swiftmq.com
>To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and 
>write in the body of your message:
>UNSUBSCRIBE developers <your-email-address>
>Archive: http://www.mail-archive.com/developers@mail.iit.de/
>
>
>


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to