Document Information

Last modified:
2008/07/23 16:09 by ecker

Java RPC

Building a qooxdoo test application

The Java backend comes with a build.xml file that generates a web application archive (WAR). (In order to use this build file, you need to have Ant installed.) The resulting WAR contains all the necessary server-side and client-side classes to experiment with the RPC mechanism.

To build the test WAR, simply follow these steps on the command line:

cd /qooxdoo/frontend
make build
cd /qooxdoo/backend/java
ant

Now deploy the WAR in a Java web server of your choice (e.g. Apache Tomcat). You can then point your browser to one of the RPC test pages (e.g. http://localhost:8080/qooxdoo/sample/html/test/RPC_1.html) to see the RPC mechanism in action.

Future qooxdoo releases may also include a pre-built Java backend.

Building your own applications

You can use the supplied build.xml as a starting point for your own applications. For example, you can modify it to include your own applications instead of the qooxdoo examples. Or you can modify it to build a JAR with the qooxdoo RPC classes and add that to an already existing webapp of yours. In this case, you have to add a mapping for the RpcServlet in your web.xml (see webapp/WEB-INF/web.xml in the Java backend).

For development, you can use cross-domain calls (see below). This way, you can load HTML and script files via file:// URLs, and only the server part needs to be packaged in a WAR. To see any client-side changes, simply reload the page. When you’re ready to put the application into production, set cross-domain to false and add the client part to the WAR. There are also more sophisticated solutions (e.g. using a servlet and a custom classloader to load scripts), but these are beyond the scope of this article.

Information

Last modified:
2008/07/23 16:09 by ecker

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.