PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: Ivan on May 27, 2008, 11:18:30



Title: PureMVC and GraniteDS
Post by: Ivan on May 27, 2008, 11:18:30
Hi,

I am completely new to PureMVC. I have an existing demo app that accesses server-side services via GraniteDS with the AS3 code primarily embedded in the mxml file.

In MXML, I make the RemoteObject call and then use a ResultEvent handler to retrieve and cast the returned class. I have no idea how to do that in a PureMVC proxy class.

Is anyone aware of a sample that uses PureMVC with GraniteDS calls encapsulated in a proxy class? Or could someone give me some ideas on how to do this?

I have searched the web for PureMVC with Granite, Blaze and LCDS and had no luck.

Thanks in advance, Ivan


Title: Re: PureMVC and GraniteDS
Post by: puremvc on May 27, 2008, 05:26:03
CodePeek doesn't use a RemoteObject, it uses HttpService, but the concept is the same. It has a CodeSearchProxy Which talks to Google Code.

The concept is the same, though.

Also some of the other demos like the Flex/WebORB Login actually us RemoteObject.

-=Cliff> 


Title: Re: PureMVC and GraniteDS
Post by: Ivan on May 29, 2008, 08:50:37
Dear Cliff,

   Thank you for the lead. I have been able to successfully invoke my Java services via GraniteDS from a PureMVC proxy.

   I used a Granite SecureRemoteObject in my proxy class instead of the basic RemoteObject and was then able to set the endpoint attribute to the value of the endpoint URI as specified in the WEB-INF/flex/services-config.xml on the server and everything just worked.

   Best wishes, Ivan