Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2011
    Location
    roma
    Posts
    9

    mapping ActionScript and Java objects

    Hi

    I read the article on http://cometdaily.com/2010/03/07/hel...lightstreamer/

    support lightstreamer remote object mapping ?

    here is the doc on blazeDS:
    http://livedocs.adobe.com/blazeds/1/...ze_data_3.html

    thanks

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,

    is there a difference between what is shown in the blog post an what you're expecting?

    You can send any java bean from Lightstreamer server to Flex client. Do you mean something different?

  3. #3
    Member
    Join Date
    Mar 2011
    Location
    roma
    Posts
    9
    AS3 allow to mapping actionscript objects to java objects with tag [remoteClass] tag in ActionScript so the conversion data type is automatic.

    http://sujitreddyg.wordpress.com/200...-java-objects/

    support lightstreamer remote object mapping ?

    thanks

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    no, the RemoteObject is not supported, you can only receive AMF objects as fields on an item.

    also the automatic casting is not supported; if you need to have the received object as an instance of a defined class you can write a wrapper instead.
    e.g.: a simple wrapper for the bean of our hello world example will look like this:


    and you'll use it like this:



    HTH

  5. #5
    Member
    Join Date
    Mar 2011
    Location
    roma
    Posts
    9
    thanks

    another questios , use lightstreamer Long polling or Streaming polling ?

    http://en.wikipedia.org/wiki/Long_polling#Long_polling

    thanks

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Lightstreamer can use both;
    by default it uses streaming btw if the infrastructure blocks the streaming (e.g.: a proxy that blocks the http streaming between the client and the server) it falls back to long polling.

  7. #7
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    if I send 100 kb from server to client every 3 seconds for a total of 30 mb , stream connection (alway open) consume more bandwidth of the long polling ?
    long polling will have a bigger overhead (as more http requests are sent over the wire) so it will use more bandwith

  8. #8
    Member
    Join Date
    Mar 2011
    Location
    roma
    Posts
    9
    is there a Stock-List demo made in flax- AMF online ?

  9. #9
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    the only AMF example is the one in the HelloWorld tutorial on CometDaily

  10. #10
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    on the other hand a non-AMF flex StockListDemo is available here: http://www.lightstreamer.com/demo/Flex_StockListDemo/ (you can find the sources in the Lightstreamer distribution)

 

 

Similar Threads

  1. Replies: 0
    Last Post: March 8th, 2010, 02:57 PM
  2. Replies: 1
    Last Post: May 21st, 2009, 10:41 AM
  3. ActionScript/JavaScript Bridge Released!
    By Alessandro in forum Client SDKs
    Replies: 2
    Last Post: February 4th, 2008, 10:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:13 PM.