> Under what conditions and to what extent does SwiftMQ make use of
> multi-threading in the context of the JMS Publisher/Subscriber model?
> From docs "ThreadpoolSwiftlet" (net.connection) and "NetworkSwiftlet"
> (net.tcp.mode) i understand that the maximum of concurrency is to have
> one
> thread per connection (= TopicConnection?).
> What if one TopicSession creates multiple instances of TopicSubscriber,
> subscribing to different topics? Is it possible to have messages
> received on
> different topics be processed by different threads concurrently?
A topic connection can have multiple sessions, each is a single threaded
context. You can create multiple subscribers [with a message listener]
per session but they are handled by that one session thread [on client
side; the router handles all work through its thread pools]. To increase
concurrency, you should create multiple sessions, each of it with a
subscriber.
> If so, what's about Topics related to each other in a Topic Hierarchy
> as
> descibed in doc "JMS Implementation Notes"? (Example: If two
> TopicSubscriber
> instances (assume ts1, ts2) within the same TopicSession subscribe to
> iit.sales.EU and iit.sales, will messages published on iit.sales be
> processed by a single thread (running ts1 and ts2 one after the other)
> or
> two different threads (running ts1 and ts2 concurrently)?)
Each hierarchy can be handled concurrently. For example, if you have the
hierarchy "iit.sales.EU" and "swiftmq.jndi", "iit" and "swiftmq" are
handled concurrently. But that is dependent on the resp. thread pool
settings [jms.producer, jms.consumer, jms.session].
--
Andreas Mueller, IIT GmbH, Bremen/Germany, http://www.iit.de
SwiftMQ - JMS Enterprise Messaging System, http://www.swiftmq.com
------------------------------------------------------
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/