J
Jazil
I understand that JMS allows you to publish messages to durable topics
for durable destinations (i.e. topics) for duable subscriptions. I am
trying to make the connection between the topic string and the topic
destinations.
First, let's assume I have 2 durable subscribers who are not currently
active - Joe and Fred.
Joe wants to receive msgs for hierarchical topic: "Stock Market /
NYSE / Energy / * "
Fred wants to receive msgs for hierarchical topic: "Stock Market /
NYSE / Energy / Oil / XOM"
Question #1: How many durable destinatations does Joe have?
One? Three?
Question #2: How many durable destinatations does Fred have?
One? Five?
Question #3: I assume Joe and Fred cannot share durable
destinations - correct?
Now, let's assume I have 1 persistent message that I want to publish
to this topic string: "StockMarket / NYSE / Energy / Oil / XOM"
Question #4: Does JMS publish the message to 1 duable
destination called
"StockMarket / NYSE / Energy / Oil / XOM"?
Question #5: Does JMS publish the message to 5 duable
destinations called
"StockMarket"
"NYSE"
"Energy"
"Oil"
"XOM"?
Question #6: Does JMS publish the message to EACH durable
destination for the providers?
Perhaps JMS doesn't not have builtin support a hierarchical topic
string. If so, is that something an application using JMS needs to
handle itself? And would you handle it in any particular JMS objects
method or your own class method?
If the application has to keep track of it - I guess before using JMS,
I'd have to have stored the subscriber's topic string in a database
intially...and then for each message to be published, I'd have to
write code to compare the message's topic string to the each
subscription's topic string and only if it matches, would I publish to
that subscriber's "queue". I was hoping JMS would handle all this.
I appreciate any help you can give this newbie to JMS!
Thanks!
Jaz
for durable destinations (i.e. topics) for duable subscriptions. I am
trying to make the connection between the topic string and the topic
destinations.
First, let's assume I have 2 durable subscribers who are not currently
active - Joe and Fred.
Joe wants to receive msgs for hierarchical topic: "Stock Market /
NYSE / Energy / * "
Fred wants to receive msgs for hierarchical topic: "Stock Market /
NYSE / Energy / Oil / XOM"
Question #1: How many durable destinatations does Joe have?
One? Three?
Question #2: How many durable destinatations does Fred have?
One? Five?
Question #3: I assume Joe and Fred cannot share durable
destinations - correct?
Now, let's assume I have 1 persistent message that I want to publish
to this topic string: "StockMarket / NYSE / Energy / Oil / XOM"
Question #4: Does JMS publish the message to 1 duable
destination called
"StockMarket / NYSE / Energy / Oil / XOM"?
Question #5: Does JMS publish the message to 5 duable
destinations called
"StockMarket"
"NYSE"
"Energy"
"Oil"
"XOM"?
Question #6: Does JMS publish the message to EACH durable
destination for the providers?
Perhaps JMS doesn't not have builtin support a hierarchical topic
string. If so, is that something an application using JMS needs to
handle itself? And would you handle it in any particular JMS objects
method or your own class method?
If the application has to keep track of it - I guess before using JMS,
I'd have to have stored the subscriber's topic string in a database
intially...and then for each message to be published, I'd have to
write code to compare the message's topic string to the each
subscription's topic string and only if it matches, would I publish to
that subscriber's "queue". I was hoping JMS would handle all this.
I appreciate any help you can give this newbie to JMS!
Thanks!
Jaz