Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Eclipse RCP Meets Spring: A Perfect Thick-Client Match : Page 5

Eclipse Rich Client Platform (RCP) is fast becoming the framework of choice for building thick client applications. Get a step-by-step guide to leveraging Eclipse RCP with Spring.


advertisement

Running the Application

Now you are ready to run your application. In case you haven't already, import the stocktradeserver project into Eclipse as follows:
  1. In Eclipse, click the toolbar button Deploy MyEclipse J2EE project to Server (see Figure 15).

    Click to enlarge

    Figure 15. Deploy MyEclipse J2EE Server Button

    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).



    Click to enlarge

    Figure 16. StockTradeServer Successfully Deployed

    Now start Tomcat server (see Figure 17). Tomcat should start successfully.

    Click to enlarge

    Figure 17. Start Tomcat via MyEclipse Plugin
  2. 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).

    Click to enlarge

    Figure 18. EclipseTradeClient Running Successfully

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.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap