# Pub/Sub from Queue

**URL:** <https://community.solace.com/t/pub-sub-from-queue/1018>\
**Category:** General Discussions\
**Created:** [November 10, 2021, 6:34pm UTC](https://community.solace.com/t/pub-sub-from-queue/1018 "2021-11-10T18:34:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkadir](https://avatars.discourse-cdn.com/v4/letter/k/ec9cab/32.png) [@kkadir](https://community.solace.com/u/kkadir)\
**Post date:** [November 10, 2021, 6:34pm UTC](https://community.solace.com/t/pub-sub-from-queue/1018/1 "2021-11-10T18:34:44Z")

</div>

Hello, I’m new to Solace and trying to understand how I can use queues with non-persistent event streaming. I started with a direct messaging pattern which works fine but I have an AMQP producer and as far as I understand, an AMQP message must be pushed to a queue. On the other hand, I have multiple subscribers but consuming data from a non-exclusive queue results in distributing the messages across subscribers which is not why intended to do.

My question is, how can I use this non-exclusive queue as a forward incoming AMQP data as a direct message to all subscribers?

PS: I couldn’t select the correct category from the dropdown menu, and apologies that now I cannot change it.

---

<div class="post-metadata">

**Author:** ![RobO](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@RobO](https://community.solace.com/u/RobO)\
**Post date:** [November 11, 2021, 1:23pm UTC](https://community.solace.com/t/pub-sub-from-queue/1018/2 "2021-11-11T13:23:57Z")

</div>

@kkadir You will not be able to accomplish that with queues in the manner you are thinking. You can leverage JMS over AMQP and accomplish your goal.

Take a look at the tutorials [here](https://tutorials.solace.dev/java-amqp-qpid-jms1).

There is a tutorial for how to accomplish Pub/Sub. I think that is what you are looking for. You will be able to publish once and consume multiple times.

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [November 15, 2021, 5:02pm UTC](https://community.solace.com/t/pub-sub-from-queue/1018/3 "2021-11-15T17:02:23Z")

</div>

Hey @kkadir ! Curious to know if what Rob referenced answers your question?

---

<div class="post-metadata">

**Author:** ![dreamoka](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/dreamoka/32/2240_2.png) [@dreamoka](https://community.solace.com/u/dreamoka)\
**Post date:** [February 17, 2022, 5:06am UTC](https://community.solace.com/t/pub-sub-from-queue/1018/4 "2022-02-17T05:06:24Z")

</div>

Hey @kkadir I am new to solace. How do I take take advantage of the Solace Topic to Queue Mapping feature?
