Hey Guys,
I started out working with red5 last week. Until now everything went fine,
the demo's are nice and the system is easier than when it apears at first.
Now I'm trying to make a call to a function from the client to the server.
using
connector.connection.call("myservices.login", res);
where res is just a catching object with a result handler on it.
I added the following line to my red5-web.xml
<bean id="myservices.service"
class="org.red5.server.webapp.oflaTest.Services" />
to register the handler and the following code is my Services class itself
package org.red5.server.webapp.oflaTest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class Services {
private static final Log log = LogFactory.getLog(Services.class);
public void login(){
log.info("services login");
DBConnector db = new DBConnector();
db.query("INSERT INTO red5test (text, date) VALUES ('service
invoked',current_timestamp)");
}
}
the function login works, I tested it using a JUnit and no problems what so
ever it posts a line in my database so that is ok.
I restart the red5 service after copying but the login function is never
called
I checked and it's executed when the connection is open so it should work as
far as I believe.
I tried changing the bean line to:
<bean id="myservices.service"
class="org.red5.server.webapp.oflaTest.Services"
scope="singleton" lazy-init="default" autowire="default"
dependency-check="default"/>
but no difference neither
does anyone have an idea what I should do or change to make this work?
thanks for the response!
Grtz
Kristof
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org