Results 1 to 4 of 4

Thread: Restart Application from API

  1. #1

    Default Restart Application from API

    I am having trouble getting a successful restart done using either the API in a Http Provider or using the jmx api with this example I am using an rtp stream with a .stream file in the content directory and in startupstreams.xml.

    My understanding is that there is no need to explicitly call a method on appInstance to actually start the app (there is a shutdown but not a start method in the API) and that it will restart when a client attempts to connect. However I am getting a stream not found when attempting to connect after a shutdown. I then have to ssh into the instance and call restart on the Wowza process to get the stream working again.

    Am I missing a restart equivalent in the API, or is there something else I'm missing? Here is what I'm doing to shutdown:

    IServer server = Server.getInstance();	
    	IApplication app1 = vhost.getApplication(server.getProperties()
    		.getPropertyStr("PublishToApplication", "live"));
    	IApplicationInstance instance = app1.getAppInstance("_definst_");
    	instance.shutdown(false, false);

    Last edited by grantk; 06-13-2012 at 09:27 AM. Reason: grammar

  2. #2
    Join Date
    Dec 2007


    Are you using StreamType "live" and starting the stream in StartUpStreams.xml? If so, you have to restart the stream after stopping the application. You can use the MediaCaster API


  3. #3


    Yes, I am using StartupStreams.xml. I wondered what the MediaCaster API was.

    Thanks again.
    Last edited by grantk; 06-14-2012 at 08:39 AM.

  4. #4
    Join Date
    Dec 2007


    You're welcome, glad I could help.


Similar Threads

  1. Application restart API
    By pirateMan in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 06-12-2014, 02:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts