# RTP stream registration

**URL:** <https://community.wowza.com/t/rtp-stream-registration/41970>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 17, 2014, 7:37am UTC](https://community.wowza.com/t/rtp-stream-registration/41970 "2014-02-17T07:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_Paumier](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Sebastien\_Paumier](https://community.wowza.com/u/Sebastien_Paumier)\
**Post date:** [February 17, 2014, 7:37am UTC](https://community.wowza.com/t/rtp-stream-registration/41970/1 "2014-02-17T07:37:22Z")

</div>

Hi, I would like to have my module register some RTP streams from .sdp files depending on some external events. According to the documentation, it is possible to invoke IApplicationInstance.startMediaCasterStream. I thought I could do this in onAppStart, but it seems that this method is not invoked until there is an attempt to consume a stream. Is there a way to have onAppStart invoked immediately after Wowza has started ?

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [February 17, 2014, 2:04am UTC](https://community.wowza.com/t/rtp-stream-registration/41970/2 "2014-02-17T02:04:44Z")

</div>

Hi,

You can use StartupStreams to start streams when Wowza starts up or you can use the following tutorial

[https://www.wowza.com/docs/how-to-use-a-server-listener-to-load-and-lock-an-appinstance-serverlistenerloadandlockappinstances](https://www.wowza.com/docs/how-to-use-a-server-listener-to-load-and-lock-an-appinstance-serverlistenerloadandlockappinstances)

This starts applications when Wowza starts up.

Andrew.
