This is the class i call on the remote it should be set to return string or
can i tell java what type i am expecting to get in return ???, but that dont
seem so "dynamic" I would need difrent return for each type ? or somthing
like that ?
class HelloWorld
{
function HelloWorld()
{
$this->methodTable = array
(
"say" => array
(
"access" => "remote",
"arguments" => array("sMessage"),
"description" => "Pings back a message",
"returns" => "string"
)
);
}
function say($sMessage) {
// NetDebug::trace("Hello world");
return 'You said: ' . $sMessage;
}
}
From: Mondain <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Red5] red5 remoting
Date: Wed, 14 Feb 2007 18:06:54 -0800
A lot of the AMF stuff has changed in rc2 so I would think your issue
probably lies there. If you can set a "Type" before sending your request
you
should do so, since this code seems to think it is getting a Double type.
Paul
On 2/14/07, morten hundevad <[EMAIL PROTECTED]> wrote:
hi all. finaly i got it working again using new version java and new
version
0.6rc2
in my main app i have added a resultReceived for the remoting result.
/*
* (non-Javadoc)
* @see
org.red5.server.net.remoting.IRemotingCallback#resultReceived(
org.red5.server.net.remoting.RemotingClient,
java.lang.String, java.lang.Object[], java.lang.Object)
*/
public void resultReceived(RemotingClient remClient, String method,
Object[]
params, Object result) {
log.info("CallbackHandler resultType :" + result.getClass()+ "
resultDATA
:" + result);
}
Now strance thing is , ( i changed nothing on the remote end ) but seems
to
always return this..
[java] [INFO] 32593 Thread-22:( Fannarchy.Application.info )
CallbackHandler resultType :class java.lang.Double resultDATA
:1.9498047021534262E-264
I have tryed to change the remoting site and change the type arould, but
always comes out as java.lang.Double with a value off
"1.9498047021534262E-264"
Anyone have any idea ?, last i was using java 1.5 update 11, now i am on
1.6
could java have anything to do with this ?
morten
_________________________________________________________________
Få 250 MB gratis lagerplads på MSN Hotmail: http://www.hotmail.com
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
The early bird may get the worm, but the second mouse gets the cheese.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_________________________________________________________________
Opret en personlig blog og del dine billeder på MSN Spaces:
http://spaces.msn.com/
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org