Hi,

I haven't write code under Red5 since a lots of months.

The ServiceInvoker seems to have totaly changed.

In my Flash application, I want to call the a function on the server.
But this doesn't works, I have try to used the Java way, and the Rhino Way,
and I have this kind of error :

     [java] [ERROR] 28679 pool-1-thread-5:( org.red5.server.service.ServiceInvoker.error ) Method HelloTest not found in null

The Flash code :
    red5.call('HelloTest', red5Calls, input.text);

The Rhino code :

function object(o) {
    function Application() {
        this.appScope;
        this.serverStream;
        this.className = 'Application';

        this.getClassName = function() {
            return this.className;
        };

        this.HelloTest = function(string) {
            print("Hello World " + string);
            return "Hello Wooooorld " + string;
        };
(...)

My red5-web.xml :

    <bean id="web.handler" class="org.red5.server.script.rhino.RhinoScriptFactory">
        <constructor-arg index="0" value="classpath:applications/main.js"/>
        <constructor-arg index="1">
            <list>
                <value>org.red5.server.api.IScopeHandler</value>
                <value>org.red5.server.adapter.IApplication</value>
            </list>
        </constructor-arg>
        <constructor-arg index="2">
            <value>org.red5.server.adapter.ApplicationAdapter</value>
        </constructor-arg>
    </bean>

Thanks for your help.

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to