Hey, I just wanted to make the little application, described in the HOWTO-NewApplications.txt. For creating this application I used Eclipse and did not experience any Problems. I named this project "vc".
My weapps structure looks like this: webapps -vc --WEB-INF ---src ----vc -----application.java ---classes ----vc -----application.class ---build.xml ---log4j.properties ---red5-web.properties ---red5-web.xml ---web.xml I also edited the last four config files. But I am not really sure whether my beans are correct, so I will attach this file at the end of this mail. The build.xml exactly contains what I read here: http://www.mail-archive.com/[email protected]/msg05546.html. I changed the value for target.jar from "nameofyourapp.jar" to "vc.jar". When I execute ant it says: Buildfile: build.xml build: BUILD SUCCESSFUL Total time: 2 seconds Sounds good ;). I restarted my Red5 server, and created a Flashapplication: nc = new NetConnection(); nc.connect("rtmp://localhost/vc"); RunCode = function(){ nc.call("add", nc, 1, 2); } nc.onStatus = function(info){ if(info.code == "NetConnection.Connect.Success"){ connect.text="verbunden"; RunCode(); } } But I cannot establish a Netconnection to the vc applikation. Establishing a Netconnection to one of the demoapplications works fine. So there is no general error in my Red5 configuration. I think there is a mistake i made because I did not understood what I was doing ;). Thank you very much, Max red5-web.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" " http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="placeholderConfig" class=" org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location" value="/WEB-INF/red5-web.properties" /> </bean> <bean id="web.context" class="org.red5.server.Context" autowire="byType" /> <bean id="web.scope" class="org.red5.server.WebScope" init-method="register"> <property name="server" ref="red5.server" /> <property name="parent" ref="global.scope" /> <property name="context" ref="web.context" /> <property name="handler" ref="web.handler" /> <property name="contextPath" value="${webapp.contextPath}" /> <property name="virtualHosts" value="${webapp.virtualHosts}" /> </bean> <bean id="web.handler" class="org.red5.server.webapp.vc.application" singleton="true" /> <!-- this will support calling methods through "myhandler.<methodName>" <bean id="myhandler.service" class="the.path.to.my.ServiceHandler" singleton="true" /> --> </beans>
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
