Results 1 to 4 of 4

Thread: Applications.xml reload

  1. #1

    Question Applications.xml reload

    Hello (again me) ,

    I looking for the way to reload "on the fly" an application.xml via command line.
    This will allow me not to wait wowza reloading my config but do it manually.

    Regards,

  2. #2

    Default

    You can do it though JConsole/JMX. There is not a command line for this. Take a look at the operation startApplicationInstance and stopApplicationInstance under the VHost object in JConsole.

    Charlie

  3. #3

    Default

    Thx Charlie,

    I used this

    But typing:

    Code:
    java -cp . JMXVHost startAppInstance vod:Application.xml/_definst_
    I obtain...

    Code:
    ERROR: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 127.0.0.1; nested exception is: java.net.SocketException: Network is unreachable]

    Here is an extract of my Server.xml:

    Code:
    <Server>
                    <CommandInterface>
                            <HostPort>
                                    <IpAddress>*</IpAddress>
                                    <Port>8083</Port>
                            </HostPort>
                    </CommandInterface>
                    <AdminInterface>
                            <!-- Objects exposed through JMX interface: Server, VHost, VHostItem, Application, ApplicationInstance, MediaCaster, Module, Client, MediaStream, SharedObject, Acceptor, IdleWorker -->
                            <ObjectList>Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker</ObjectList>
                    </AdminInterface>
                    <!-- JMXUrl: service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -->
                    <JMXRemoteConfiguration>
                            <Enable>true</Enable>
                            <IpAddress>localhost</IpAddress> <!-- set to localhost or internal ip address if behind NAT -->
                            <RMIServerHostName>localhost</RMIServerHostName> <!-- set to external ip address or domain name if behind NAT -->
                            <RMIConnectionPort>8084</RMIConnectionPort>
                            <RMIRegistryPort>8085</RMIRegistryPort>
                            <Authenticate>false</Authenticate>
                            <PasswordFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.password</PasswordFile>
                            <AccessFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.access</AccessFile>
                            <SSLSecure>false</SSLSecure>
                    </JMXRemoteConfiguration>
    I can telnet the port... and no firewall stuff are activated on this machine ...

    Have an idea ?

    Regards,

  4. #4

    Default

    You need to be sure you are running the latest patch and that you have the JMX interface enabled. Be sure yoiu can connect using JConsole first before trying to the command line interface.

    Charlie

Posting Permissions

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