I didn't explain my question well, or every 1 hate my question???
 
 
 
 

sobluesky
2006-05-04

发件人: sobluesky
发送时间: 2006-05-03 20:47:25
收件人: [email protected]
抄送:
主题: How can I get httpRequst in red5 flash remoting??
 
Hi, guys, this is really simple and urgent:
 
 
//>>>>>swf:
  NetServices.setDefaultGatewayUrl("http://localhost:5080/test/gateway");
  var _amfConn = NetServices.createGatewayConnection();
  var ds = _amfConn.getService( "swf", this );
  ds.swfConnect( { aaa:"adfwefs", bbb:{  s1se:"sefe",  iis:9823838, soes:new Date() } } );
 }
 function doit_Status( o ){
  var tmp = o;
  trace( tmp );
 }
 function doit_Result( o ){
  var tmp = o;
  trace( tmp );
 }
 
 
//>>>>>>red5-web.xml
 <bean id="swf.service"
     class="test.amf.Test"
  singleton="true" />
 
 
 
//>>>>>>java
package test.amf;
class Test{
    public Hashtable<Object,Object> swfConnect( Object o ){
        // how can I get the httpRequest here?????
        System.out.println( "yanggang.amf.Test .....................111111111" );
        Hashtable<Object,Object> ht = new Hashtable<Object, Object>( );
        ht.put( "param", o );
        ht.put( "parsfe", o );
 
        System.out.println( "yanggang.amf.Test .....................222222" );
        return ht;
    }
}
 
thanks a lot!
 
-sobluesky
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to