JBoss+WAR+RPC+GWT Concepts understanding

46 views
Skip to first unread message

Anto

unread,
Mar 16, 2012, 8:54:53 AM3/16/12
to Google Web Toolkit
Hi, this is my first time around and I have a bunch of doubts but I'm
gonna try to be precise.

I have to complete a task which involves 4 majors terms I'm not very
related with.
JBoss, GWT, RPC and WAR
The task is: To make a web project in WAR format which must have a GWT
app. This app must have at RPC services. RPC services can be anything,
just simplistic. The RPC must be made from an interface, using a
button or whatever.

Then that WAR will be deployed in a JBoss server, and test the RPC
using the interface.

So here is my knowledge so far after reading and researching.
WAR files are web application packages, similar to EJB files but using
web.
JBoss is an application server where you can deploy WAR and EJB files.
So the app within the WAR file can be reachable using a web browser.
GWT is the Google Web Toolkit to make web applications using Java
language. the compiler make all the dirty job and generates all the
HTML and JS files. You can make the WAR file out of this.
And finally RPC are calls to ask for a remote services, is a method
implemented on a remote place, so is available to be requested. That
way the 'local' app avoid implementing those procedures and focus on
local ones only.

The thing is I'm not quite sure of somethings.
I can make my GWT app and package it in a WAR file, I have JBoss
running, so if I copy the war files to the deploy folder it'll be
running, but I don't know where to place the remote procedures and I
don't know where to make the interface.
So, should I make my GWT project and implement there some methods to
be used as RPC, and then totally apart, make an interface, like a HTML
file or something to call those RPC? (important: totally apart? and
HTML works? or it must be like other type of interface?)

This is the kind-of-diagram I have in mind and I don't know if it's
correct:
[JBoss server1] WAR project(Procedures1, Procedure2)
----------------------> Interface which somehow uses something like
server1:procedure1 and then print the result of procedure1 somewhere
(in the interface).

I really wanna get this clear,
Many thanks in advance.

Joseph Lust

unread,
Mar 17, 2012, 12:28:30 PM3/17/12
to google-we...@googlegroups.com
Anto,

Honesty, you should download an existing, working sample project into Eclipse or your IDE of choice and run it. Then modify it as you snoop around and learn about it's inner workings. The best documentation of GWT and its workings is the Google documentation. Read it all, and all of your above questions should be satiated.

There are many existing projects available online, just Google for them and you'll find items like https://code.google.com/p/gwt-in-practice/ where you can get working examples of the war files, UI, RPC, etc.


Sincerely,
Joseph

Anto

unread,
Mar 19, 2012, 8:45:56 PM3/19/12
to google-we...@googlegroups.com
Thank you so much for this pointers. Sometimes this is what you need to get started, a little help. Thanks again, I'm reading all this stuff.
Reply all
Reply to author
Forward
0 new messages