While I’m backing up my laptop’s hard drive, in preparation for reformatting the bloody thing due to a problem with an “invalid node structure”, I thought I’d write up some notes on my foray into GWT.

I was intrigued by the idea of using Java to generate maintainable JavaScript. I’m convinced that the level of interactivity that AJAX affords is totally adequate for much of what I want to do. I’m really not a big fan of JavaScript, though.

So I downloaded the GWT and looked through the samples. I found Chapter 10 of the GWT book from Manning really quite helpful in guiding me through setting up an RPC.

I had some trouble setting up Eclipse to export the war file for deployment on Tomcat. Apparently many other people have too. In the end, I used some ideas from Chad Bourke (via the GWT Developer Forum but wound up doing something like

cd Semantics2
ant -f semantics2.ant.xml package
cp semantics2.jar www/org.ikit.Semantics2/WEB-INF/lib/
cd www/org.ikit.server
zip -r ../../Semantics2.war .
scp ../../Semantics2.war remote.server:/path/to/tomcat/webapps

In all, it seems that it’s quite possible to extend Knowledge Forum by setting up an RPC service that talks to the ZTB API and then serializes the necessary bits to send across the wire to the client. It seems reasonably fast, too.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s