Results 1 to 2 of 2

Thread: How to call ServerListener method through JMX

  1. #1
    Join Date
    Aug 2014
    Posts
    7

    Default How to call ServerListener method through JMX

    Using this article http://www.wowza.com/forums/content....h-JMX-JConsole I can call my module's methods from JConsole. How to do the same thing with Server Listener modules? What is a path to them?

  2. #2

    Default

    Hi,

    public module methods that return simple types will automatically show up in JMX under the Modules/[module-name]/Instance tab however for Server Listeners or any other custom classes, you need to add your own mbean objects.

    Wowza uses org.apache.commons.modeler.Registry to add mbeans to JMX.
    	Registry.getRegistry(null, null).registerComponent(Object bean, String oname, String type); is used to add mbeans to the JMX interface.
    
    	Registry.getRegistry(null, null).unregisterComponent( String oname ); removes them.
    The original Wowza Load Balancer has an example in the ServerListenerLoadBalancerListener class which is included in the download. In this example, mbeans are added for the load balancer, the redirector and each edge server as they register with the load balancer.

    Roger.

Similar Threads

  1. Is IClient.call a non-blocking method?
    By Renato@Voitel in forum General Forum
    Replies: 3
    Last Post: 10-24-2012, 09:37 AM
  2. How to call a server side method using JavaScript instead of Flash's NetConnection?
    By slalompoint in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 12-17-2011, 04:14 PM
  3. is it possible unix shell call a class/method on a wowza module?
    By killerwake in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 11-20-2011, 05:25 PM

Posting Permissions

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