@anithamartin , As @TomF mentioned, Topic endpoints satisfy JMS Durable subscriber requirements. Other than that, they are quite restrictive in their utility.
- You can subscribe multiple topics to Queues. Topic endpoints have a single topic subscription.
- Queues support multiple consumers for load-balancing or high-availability use-cases. Topic endpoints support single subscriber.
- You can publish directly to the Queue or to any of the topics subscribed. With topic endpoint, publishing can be done only on the topic.
- There are also some differences the way selectors are handled. Pl see here for details. This may be one of the use-cases for using topic endpoints.
- Change to topic subscription to Queues is dynamic and all messages are preserved. Any change in subscription to topic endpoint will reset the topic endpoint and all persisted messages will be lost.
Pl also check out this blog post.