Hi all,
We decided to use smartGWT + GWT RPC for some parts in our project.
The server side is in EJB 3.0 and it uses DTO that are packaged in archive along with the session and entity beans.
As we use smart gwt with RPC we need to duplicate every DTO, because if we use DTO class from the server project we dot an exception. I made(for test) DTO in the gwt client part and if i use it every thing is ok, but the problem is that we have duplication. Could you help, how to avoid this?
And one other thing, could i use:
MyClass extends DataClass implements Serializable...
and MyClass c = new MyClass();
c.setAtributte(someAttrName, myClassDTOFromServer.getSomeAttr);
in order to dynamically copy the dto properties and after that i could use this MyClass instance on the client gwt code? I tried it, it didn't work :).
Is there some kind of "DynaBean"
Regards.
We decided to use smartGWT + GWT RPC for some parts in our project.
The server side is in EJB 3.0 and it uses DTO that are packaged in archive along with the session and entity beans.
As we use smart gwt with RPC we need to duplicate every DTO, because if we use DTO class from the server project we dot an exception. I made(for test) DTO in the gwt client part and if i use it every thing is ok, but the problem is that we have duplication. Could you help, how to avoid this?
And one other thing, could i use:
MyClass extends DataClass implements Serializable...
and MyClass c = new MyClass();
c.setAtributte(someAttrName, myClassDTOFromServer.getSomeAttr);
in order to dynamically copy the dto properties and after that i could use this MyClass instance on the client gwt code? I tried it, it didn't work :).
Is there some kind of "DynaBean"
Regards.
Comment