views:

864

answers:

4

Is there a tool out there that I can point at a Java DTO (Data Transfer Object) and it generates a corresponding Flex/AS Domain Object? Vise-Versa?

I'm using BlazeDS for my DataService over an AMF line.

Thanks.

+2  A: 

Granite Data Services has a tool called GAS which will generate the DTO's for you:

http://www.graniteds.org/confluence/display/DOC/2.+Gas3+Code+Generator

cliff.meyers
I have heard some one tell me about this before. I just could not find it on google for the life of me.
davidemm
A: 

You can manually write code to map Java DTO to AS classes, but there is no tool as such that is robust.

+1  A: 

Check out this AIR app for blazeDS

http://sujitreddyg.wordpress.com/2009/05/07/blazemonster/

Shua
I took a look at this and it looks great, but it doesn't work connections over SSL.
davidemm
A: 

As an alternative, you might want to check my DTO generator which is an ant-task: http://ftog.googlecode.com

Mattias