I just tried it myself and it works great. I did the following.
Created this server side module:
package com.wowza.wms.plugin.test.module;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.module.*;
import com.wowza.wms.request.*;
import com.wowza.wms.stream.*;
import com.wowza.wms.application.*;
import com.wowza.wms.sharedobject.*;
public class ModuleInternalTest extends ModuleBase
{
public static void onConnect(IClient client, RequestFunction function, AMFDataList params)
{
getLogger().info("REJECT");
client.rejectConnection();
}
}
Added this bit of XML to end of the list of my conf/Application.xml file:
<Module>
<Name>test</Name>
<Description>test</Description>
<Class>com.wowza.wms.plugin.test.module.ModuleInternalTest</Class>
</Module>
Connected to the server and the connection was rejected. Are you sure your code is being called? Did you add the entry to the proper Application.xml file? Do you add your entry at the end of the list?
If you still can’t get it to work, send me your Java files and zip up and send me your conf folder.
Charlie