문제

When mapping Java data object to Flex value objects the code works even though the java classes do not implement Serializable.

So even though code will work without it, should it? As in is it good practise to make sure that all data object classes implement Serializable when you wish to use BlazeDS for mapping.

What are the benifits if any to implementing Serializable?

도움이 되었습니까?

해결책

The answer is NO. Serializable interface is used for Java native serialization. AMF serialization has nothing common with it and is used for serializing and deserializing Flash player data. Moreover you'll not find any information about Serializable in BlazeDS docs.

You can check, that AMF is implemented in BlazeDS libraries.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top