# How to start custom module app before initial access

**URL:** <https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266>\
**Category:** Wowza Streaming Engine\
**Created:** [February 20, 2014, 1:51am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266 "2014-02-20T01:51:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [February 20, 2014, 1:51am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266/1 "2014-02-20T01:51:33Z")

</div>

Hi,

The custom module I wrote gets it’s onAppStart event triggered upon the first time the app is access from outside.

Is it possible to have it started (i.e. onAppStart triggered) before that upon the wowza service itself starts?

Thanks,

Jonathan

---

<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:** [February 20, 2014, 9:20am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266/2 "2014-02-20T09:20:52Z")

</div>

It sounds like you might want to try using our [server event listeners](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server#IServerNotify2) and perhaps take a look at our [how to load and lock an app instance](https://www.wowza.com/docs/how-to-use-a-server-listener-to-load-and-lock-an-appinstance-serverlistenerloadandlockappinstances%28IServerNotify2%29).

---

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [February 20, 2014, 7:44am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266/3 "2014-02-20T07:44:55Z")

</div>

> It sounds like you might want to try using our [server event listeners](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server#IServerNotify2) and perhaps take a look at our [how to load and lock an app instance](https://www.wowza.com/docs/how-to-use-a-server-listener-to-load-and-lock-an-appinstance-serverlistenerloadandlockappinstances%28IServerNotify2%29).

Yes, this should work.

Do you have a precompiled version of the load and lock module for wowza streaming engine 4.0? The downloadable in that thread looks old.

Thanks,

Jonathan

---

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [February 20, 2014, 7:47am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266/4 "2014-02-20T07:47:42Z")

</div>

nvm - The downloadable pacakge did the trick for me.

Thanks!

---

<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:** [February 20, 2014, 11:10am UTC](https://community.wowza.com/t/how-to-start-custom-module-app-before-initial-access/35266/5 "2014-02-20T11:10:35Z")

</div>

Ok, great thanks for the update.
