posted 21 years ago
Hi,
I could get either of the questions.
Following may help
Usually A alient that subscribes
to a topic can consume only messages published after the client has created a subscription, and the subscriber must continue to be active in order for it to consume messages.
But u have Durable subscriptions that can receive messages
sent while the subscribers are not active. Durable subscriptions provide the
flexibility and reliability of queues but still allow clients to send messages to many recipients.
TopicSession.createSubscriber method creates a nondurable sub-scriber.
you can use the TopicSession.createDurableSubscriber method to create a durable subscriber.
Hope this helps......