开发者

Passing Objects from Java(BlazeDs) Server to Front end Flex app

I am looking for some help. I have set up a Java Dynamic web project which uses BlazeDs. This is on a Tomcat server and can send and recieve strings to a front end Flex project.

My question is now that the AMF channels are set up to communicate how can I pass Objects such as ArrayLists or Two Dimensional arrays accross the channel开发者_StackOverflow and render them in the flex app (Say through a datagrid?) Any help will be greatly appreciated!

Thanks


The mechanism to send Objects is the same as with Strings. Instead of a service returning or receiving a String it can return or receive an Object, a List, etc.

What you need to keep in mind is how data is serialized/de-serialized, this is, how data is converted from an ActionScript data type to a Java data type and viceversa. This link can help link text

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜