# infinity cycle plugin

**URL:** <https://community.wowza.com/t/infinity-cycle-plugin/43492>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 18, 2015, 11:10pm UTC](https://community.wowza.com/t/infinity-cycle-plugin/43492 "2015-03-18T23:10:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Litvinov](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@Andrey\_Litvinov](https://community.wowza.com/u/Andrey_Litvinov)\
**Post date:** [March 18, 2015, 11:10pm UTC](https://community.wowza.com/t/infinity-cycle-plugin/43492/1 "2015-03-18T23:10:34Z")

</div>

Hi everyone,

Need to receive messages from external queue in wowza plugin.

We uses RabbitMQ, so need make infinity cycle in the plugin which expect information from customer app.

How I can do it? Which event should be used?

Thanks,

Andrey

```auto
    while (true) {
      QueueingConsumer.Delivery delivery = consumer.nextDelivery();
      String message = new String(delivery.getBody());
      System.out.println(" [x] Received '" + message + "'");
                }

```

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [March 19, 2015, 12:13pm UTC](https://community.wowza.com/t/infinity-cycle-plugin/43492/2 "2015-03-19T12:13:07Z")

</div>

We have a received a ticket #121799, please refer to this moving forward.
