-
March 6th, 2011, 07:24 PM
#1
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
-
March 7th, 2011, 09:30 AM
#2
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?
-
March 9th, 2011, 06:58 AM
#3
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
-
March 9th, 2011, 10:38 AM
#4
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
-
March 9th, 2011, 01:14 PM
#5
thanks
another questios , use lightstreamer Long polling or Streaming polling ?
http://en.wikipedia.org/wiki/Long_polling#Long_polling
thanks
-
March 9th, 2011, 01:37 PM
#6
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.
-
March 10th, 2011, 03:45 PM
#7
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
-
March 10th, 2011, 04:17 PM
#8
is there a Stock-List demo made in flax- AMF online ?
-
March 10th, 2011, 04:20 PM
#9
the only AMF example is the one in the HelloWorld tutorial on CometDaily
-
March 10th, 2011, 05:20 PM
#10
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
-
By DarioCrivelli in forum Adapter SDKs
Replies: 0
Last Post: March 8th, 2010, 01:57 PM
-
By k.mcc2009 in forum Adapter SDKs
Replies: 1
Last Post: May 21st, 2009, 09:41 AM
-
By Alessandro in forum Client SDKs
Replies: 2
Last Post: February 4th, 2008, 09:44 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:00 AM.
Bookmarks