[Red5] RTMPClient Invoke

Tyler Kocheran rfkrocktk at gmail.com
Sun Sep 28 11:32:58 PDT 2008


I'm not getting the error in connecting. I'm getting it on decoding the
returned values... yay.
I'll try the inet address, 127.0.0.1 right?

On Sun, Sep 28, 2008 at 11:28 AM, Andy Shaules <bowljoman at hotmail.com>wrote:

>  I would use the java inet address and avoid the use of 'localhost'
>
> Not a java guy, I do not know if 'localhost' resolves to the user or
> application jvm context.
>
> ----- Original Message -----
> *From:* Andy Shaules <bowljoman at hotmail.com>
> *To:* red5 at osflash.org
> *Sent:* Sunday, September 28, 2008 11:20 AM
> *Subject:* Re: [Red5] RTMPClient Invoke
>
> reference typo?
>
> ----- Original Message -----
> *From:* Tyler Kocheran <rfkrocktk at gmail.com>
> *To:* red5 at osflash.org
> *Sent:* Sunday, September 28, 2008 11:17 AM
> *Subject:* Re: [Red5] RTMPClient Invoke
>
> Ah ha! Ye olde RemotingClient! I'll give it a run. Why in the heck is
> RTMPClient invoking methods on my Flash client though?
>
> On Sun, Sep 28, 2008 at 11:10 AM, Andy Shaules <bowljoman at hotmail.com>wrote:
>
>> Keep it in amf
>>
>> Caller...
>>
>> RemotingClient client = new RemotingClient(Application.dataServices);
>> ArrayList<String> args=new ArrayList<String>();
>> args.add(Application.systemPassword);
>> args.add(Application.key);
>> client.invokeMethod(Application.PING, new Object[]{args});
>>
>> And open up ye gateway on the called server web.xml
>>
>>
>> <servlet>
>> <servlet-name>gateway</servlet-name>
>> <servlet-class>
>> org.red5.server.net.servlet.AMFGatewayServlet
>> </servlet-class>
>> </servlet>
>> <servlet-mapping>
>> <servlet-name>gateway</servlet-name>
>> <url-pattern>/gateway/*</url-pattern>
>> </servlet-mapping>
>>
>>
>> ----- Original Message -----
>> From: Tyler Kocheran
>> To: red5 at osflash.org
>> Sent: Sunday, September 28, 2008 10:56 AM
>> Subject: [Red5] RTMPClient Invoke
>>
>>
>> How do you invoke remote methods on another instance of Red5 from an app?
>> This is my code that I'm trying right now:
>>
>> RTMPClient connection = new RTMPClient();
>>        try {
>>            connection.connect("localhost", 1935, "remoting");
>>        } catch (Exception e) {
>>            e.printStackTrace();
>>        }
>>        connection.invoke("RemotingHandler.getAllRealms", new
>> IPendingServiceCallback() {
>>             System.out.println("Done");
>>        }
>>
>> When I run this, the RMI is invoked on my connecting client? Weird.
>> Anyway,
>> I just need to pull information from another server instance from my
>> application. Is this the way to do it?
>>
>>  - TK
>>
>> --
>> And do this, knowing the time, that now it is high time to awake out of
>> sleep;
>> for now our salvation is nearer than when we first believed.
>>
>>
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>
>
>
> --
> And do this, knowing the time, that now it is high time to awake out of
> sleep;
> for now our salvation is nearer than when we first believed.
>
> ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>  ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080928/919af3a9/attachment.html 


More information about the Red5 mailing list