Make sure the project in the dropdown is stocktradeserver. Click Add, select Tomcat 5 as your server, and then click Finish. When you see a message saying Successfully deployed, click OK (see Figure 16).
Start the Eclipse Rich Client. Open EclipseTradeClient's plugin.xml file, click the Overview tab, and click Launch an Eclipse application. When the application is launched, push the button circled in red in Figure 18 to get a list of stocks. This action will fetch the list of stocks from the application server using Spring HttpInvoker. You can push the button to the right of the circled one to clear the list of stocks (see Figure 18).
And that's it! You have successfully built a small Eclipse Rich Client and connected it to an application server using Spring remoting.
Discover the Riches of Eclipse RCP
You should definitely consider building on top of a rich client platform, and RCP merits consideration. Building your next thick client on the Eclipse RCP will reduce a lot of the plumbing code necessary to build a thick client GUI framework. In addition, using Spring remoting as the mechanism for client/server communication allows you to switch protocols with utmost ease, and it provides all the other Spring benefits on the server side.
Stephen Lum, a senior developer for an investment bank in London, has been programming in Java for more than seven years. He is Sun certified as a Java programmer, Oracle certified as a developer, and also is a CPA.