# Startup ConfigurationModule

**URL:** <https://community.wowza.com/t/startup-configurationmodule/42567>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 29, 2014, 10:39pm UTC](https://community.wowza.com/t/startup-configurationmodule/42567 "2014-03-29T22:39:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_Cuvillier](https://avatars.discourse-cdn.com/v4/letter/h/da6949/32.png) [@Hugo\_Cuvillier](https://community.wowza.com/u/Hugo_Cuvillier)\
**Post date:** [March 29, 2014, 10:39pm UTC](https://community.wowza.com/t/startup-configurationmodule/42567/1 "2014-03-29T22:39:40Z")

</div>

Hi all,

I’ve been trying to create a configuration module. Ideally the configuration module would be launched

when the server starts and would be re-triggered each night to create / update the stream configuration from a JSON API.

I wanted to avoid having an external executable re creating the stream files and restarting the server everyday via a cron.

However, it appears that modules inheriting ModuleBase class are only loaded when a client connects to a stream. Is that correct?

Is there another way a module could be launched (i.e onAppStart be called) when the server starts, before the first client connects?

The goal of the module is to create as many streams as there are IP Cameras and publish them to make them available to clients.

I am at the stage where I’ve created a test module containing getLogger().info(“onAppStart: configurationModule”); in onAppStart

but I haven’t been able to see that line in the logs…

I’ve also added the description in /conf/Application.xml

Thanks for your help,

---

<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:** [April 3, 2014, 5:42am UTC](https://community.wowza.com/t/startup-configurationmodule/42567/2 "2014-04-03T05:42:13Z")

</div>

If you are looking to add functionality during server events, you should take a look at our [IServerNotify2](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server#IServerNotify2) interface. However, it sounds more like you want to restream ip cameras and if this is the case you can just follow [this guide](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming) to initiate that process.
