mardi 6 mai 2008

Rich Client Platform: Development Pet Store 2.0 using Eclipse RCP and JBoss.


In this article, I will show you how the combination of Eclipse RCP and EJB3 allow developers to build a rich, performed and distributed application. I will assume that you understand the basics of technologies mentioned above, and I will only explain the architecture used to efficiently handle the communication between the desktop application and the server.

This article is based on previous articles:


To build and run the sample, you need the following software:

High Level Architecture Diagram:

The diagram below details the architecture used for building this sample. It shows the interaction between RCP Application and server side components. Client could discover and lookup services via JNDI as service registry.


Configuration always depends on the application server, but it is quite the same.
I details below the configuration needed to lookup services via JNDI in JBoss server.

  • JBoss Client Library : Add jboss-all-client in the classpath.

  • PetStore client Interfaces : Add PetStore client libray in the classpath

  • JNDI parameters :

+ java.naming.provider.url=localhost:1099


In this article, we have seen together how we can access to distributed components by desktop application built using Eclipse RCP.



Aucun commentaire: