It would appear I somehow figured this out on my own... I have a
feeling it's that I needed to implement the Remote class
(java.rmi.Remote)? Am I right?

Thanks, hope this helps somebody else that's stumped on RemoteObjects.

Brian

--- In flexcoders@yahoogroups.com, "Brian Dunphy" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> Just starting to use RemoteObjects, but for some reason my
RemoteObject can
> only retrieve information, it can't use any of the mutator methods in my
> class.
> 
> My Java class is as follows:
> 
> package com.testing.pojos;
> 
> import java.io.Serializable;
> 
> public class HelloWorldMessage implements Serializable
> {
>     private String message;
> 
>     public HelloWorldMessage()
>     {
>         this.message = "Hello World";
>     }
> 
>     public String getMessage()
>     {
>         return message;
>     }
> 
>     public void setMessage(String newMessage)
>     {
>         this.message = newMessage;
>     }
> }
> 
> My RemoteObject in MXML is as follows:
> 
>     <mx:RemoteObject destination="com.testing.pojos.HelloWorldMessage"
> id="roHelloWorld">
>         <mx:method name="getMessage" result="showGetMessage(event)"
> fault="showFault(event)"/>
>         <mx:method name="setMessage" fault="showFault(event)" />
>     </mx:RemoteObject>
> 
> My destination definition is as follows:
> 
>     <destination id="com.testing.pojos.HelloWorldMessage">
>       <properties>
>         <source>com.testing.pojos.HelloWorldMessage</source>
>         <scope>application</scope>
>       </properties>
>        <channels>
>         <channel ref="my-rtmp" />
>       </channels>
>     </destination>
> 
> I can access the getMessage method just fine (and it returns the
appropriate
> message), however when I call setMessage("new message"), it doesn't
persist
> my message, it simply returns the old "Hello World!" message again.
> 
> Something I'm doing wrong?
> 
> Thanks,
> 
> Brian Dunphy
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to