HI Igor,
What matters most are the dependencies your common code requires.
Common patterns for objects that will be serialized or instantiated on both
the client and server are model domain DTOs (for GWT-RPC), business logic,
and validation.
To be supported on the client, these need to be free of unsupported library
references (like BigDecimal) and serialized instrumentation (like an ORM or
EJB might attach).
Using RequestFactory rather than RPC or roll your own, your DTOs are
defined as bean interfaces and any logic is packaged either in your model
or presenter layers
Validation is the best candidate for common code with the client supporting
JSR-303 Bean Validation.

My favorite package for creating clean DTOs usable in both the client and
server is Objectify for AppEngine.
--Andy Stevko


On Thu, Mar 21, 2013 at 12:52 AM, Igor Zubchenok <[email protected]> wrote:

> Hi!
>
> If I start a new enterprise project from a scratch. The project will have
> both server and browser app with a lot of common code in java, would you
> recommend to use GWT for reusing the common code in browser app? Or may be
> another solution?
>
> Thank in advance,
> Igor
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to