4 Replies Latest reply on May 14, 2011 3:34 AM by Drew747

    RemoteObject troubles

    Zolotoj Level 3

      If there are developers using AMF remoting  please share the most critical configurations pitfalls in Flex client.

      I am trying to put together an app. that is working locally but will not on a remote server.

       

       

      Thanks

        • 1. Re: RemoteObject troubles
          Level 2

          Jamesward.com find his page on google with "spark datagrid paging"  -Drew

          • 2. Re: RemoteObject troubles
            Zolotoj Level 3

            Sorry, but I did not find where it shows how to configure the RemoteObject: Destination, Source, config files, and compiler services option.

            • 3. Re: RemoteObject troubles
              Level 2

              3 minutes into this video:

               

              http://www.jamesward.com/2009/06/17/blazing-fast-data-transfer-in-flex/

               

               

              i ended not going with AMF. I read the AMF3 spec and found that my xml compression was screaming fast as I serialized it in my version and wanted to stick with C# and microsoft and sql server versus the Lamp Stack, BlazeDS, MySql etc.

               

              I might go with AMF in the future as I would prefer not to reinvent the wheel.

               

              But if you can get away from the bloat of average XML, and return each row in the database serialized, you can still go with a roughly lean and mean XML mechanism without wrapping every column and every row (still need to wraps a row). But my descriptions are 1 or 2 bytes not long winded <XmlTypeNamesThatAsLongAsYourArm>some_value</XmlTypeNamesThatAsLongAsYourArm>

               

              I found my xml compression to pretty much match the size and performance of AMF. Was able to stick with microsoft servers, asmx, wsdl, stuff that outperforms other servers. I can show you a fiddler screen snapshot of the data but by all means stick with AMF !

              • 4. Re: RemoteObject troubles
                Level 2

                i just realized I have amfphp on one of my servers after installing this which I have recommended several times for various reasons. Usually for buttons and pages but as I was messing with it I remembered in has amf:

                 

                http://activeden.net/item/membership-sytem/123720

                 

                you can see it is action here on my server:

                 

                http://trumpboston.com/membership/Main.html

                 

                 

                check out the login with fiddler or charles. returns back content type: application/x-amf and strings. strings are not compressed other than length bytes that proceed them so the text is fully visible.

                 

                login:  drewpierce@live.com

                pwd: abcd

                 

                you can create your own user and send forgot password reminder emails to a junk email addr of yours if you want.

                 

                the project above on activeden comes with amfphp files for use on your webhost. it comes with a mysql script to make the database where the data is saved. it has a simple php file with like 4 functions in it in the amfphp/services folder.

                 

                cpanel and putty take but a few minutes to conquer to verify the database is there. let me know if you need help. costs $6, well worth it.