GWT Web - Application and EJB

176 views
Skip to first unread message

gioMax

unread,
Jul 30, 2007, 12:58:09 PM7/30/07
to Google Web Toolkit
Hi at all.
I'm want to develop an enterprise application with enitity beans for
businness layer and GWT for presentation layer.
I read thie tutorial that talk about the EJB use in GWT:
http://grprakash.googlepages.com/gwtwithejb

So I started to write my RemoteService class to use as Remote
Interface, and here there's the first problem.
In a "normal" ear app we got the jar fot the EJB and the war for the
web. If I need some class wrote in the jar project in the web app, I
can import the class without any problem.

Here it seems that this can't be possible, I means: writing the
RemoteService class I've impoerted the necessary entity class; my IDE
ask me to add these to the GWT app classpath.

When I compile, also in hosted mode, It returned an error that tell me
thet it can't found the classes imported...

Also I try to import into the "main" GWT app class, I get an error in
compile time...
[ERROR] Line 9: The import it.giomax.entities cannot be resolved
[ERROR] Hint: Check the inheritance chain from your module; it may not
be inheriting a required module or a module may not be adding its
source path entries properly

How can I resolve this problem?Any idea? In your opinion Is it
possible to merge these two techologies (EJB3 and GWT) in an ear
applications or is this too hard?

csplrj

unread,
Jul 30, 2007, 1:38:25 PM7/30/07
to Google Web Toolkit
You can compile your GWT classes to JavaScript files and then compile
it alongwith EJB classes. Its not that difficult

Bye for now

CSJakharia

Reply all
Reply to author
Forward
0 new messages