Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
I have a Flex frontend and a Java backend. When I send an object with a date field from flex to my backend it converts the date field to a java.util.Date. The problem is that the class in java has defined the date field as a Timestamp so when the object is received as a parameter in the backend it throws an arguement type mismatch. Is there anyway a flex date value can be sent and recognised by Java as a Timestamp.
That should work. All you need to do is call it once before the first call to the remote object. You can do it when the creationComplete event of your application fires or just about anywhere really.
Basically that call tells Flex that the remote type of the Date class of Flex is java.util.Timestamp.