Interfacing a SON component with GWT
This page includes tips for developing a GWT interface for a SON component. We assume the reader is already familiar with GWT and with SON components. We develop SON components and GWT applications with Eclipse, as plugins are available for this platform.
How does it work together?
- The component is running on GWT server side, and services are able to
access information from the component, and/or to trigger some actions. In a few words, the GWT service is binded to the SON component.
- The GWT client, which is translated to HTML + Javascript, will run in
the user's browser, and do asynchronous calls to the GWT service.
GWT and OSGI
A SON component is an OSGI bundle. It is started and stopped as any bundle. On the other hand, GWT allows to develop a client/server application which will run on a web browser, by defining a web interface and eventually services running on the server side. To work properly, it needs a HTML server like Jetty.
As we run our component application as an OGSI bundle, we use a bundle for the HTTP server. This will permit to register our services dynamically when components instances are created.
We provide here a basic example of coupling a SON component with a GWT module.