Yes, but it's not trivial.

First, you need to construct a gwt module around the ejb classes you
intent to share with the client.  This involves placing a
<ejbname>.gwt.xml file someplace in the folder structure above all
those classes, and then using the <source> tags to point to all the
places where ejb sources live.  This can sometimes force you to
reorganize folders a little.  None of this will work unless you are on
GWT-1.5, by the way.

Next you need to see why the GWT compiler fails to compile your ejb
sources.  This is about dependencies that go outside your module and
outside the GWT runtime emulation footprint.  You'll have to rip all
that out (and figure out how to live without it).

Finally, you will have to deal with runtime serialization problems
wherein the JPA has replaced Java collections objects in your entities
with its own persistence "lazy load" variants, which are not known to
GWT and cannot be known to GWT and therefore cannot serialize.

Walden

On Sep 18, 5:31 pm, flavio <[EMAIL PROTECTED]> wrote:
> Hi,
> I have been developing a client application with GWT to consume
> services(EJB) to another application.
> The client applications has a dependency with EJB app but when occurs
> the RPC call i get the SerializationException error
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'br.gov.trt.regiao1.basico.modelo.uf.dominio.UFDTO' was not included
> in the set of types which can be serialized by this
> SerializationPolicy. For security purposes, this type will not be
> serialized.
>
> Where br.gov.trt.regiao1.basico.modelo.uf.dominio.UFDTO is an object
> in the EJB app.
>
> Is it possible to develop GWT applications with this architecture?
>
> Thanks
> Flávio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to