Resource CenterHow to Integrate Convertigo Gadgets/Mashup Server in eXo PlatformPrerequisites
IntroductionThe interoperability effort between eXo and Convertigo brings the Convertigo Convertigo is particularly interesting for eXo and the GateIn community because the Convertigo Studio and Convertigo Enterprise Mashup Server (EMS) provide a complete solution to develop and deploy gadgets and web services using existing applications. With Convertigo and its connectors, a developer could revamp a Web Application and expose it as an OpenSocial gadget, or take a mainframe application and, in few clicks, expose the data and the user interaction as REST Web Services to allow new applications to consume them. In the following example, we will build a new application exposed in an eXo Platform portal dashboard. The dashboard page is comprised of three different gadgets, or business sources:
All these applications will be wired together on the client side using the Convertigo InteractionHub, allowing the user to show the address of a salesforce.com contact in Google Maps when he clicks on the US Directory Gadget. The final page will look like this:
This tutorial will not cover how to develop these gadgets, because the Convertigo team has already developed and deployed them on a server hosted on the cloud. In this tutorial you will learn how to consume existing gadgets and add them to your eXo Platform instance. If you want to learn how to build Gadgets using Convertigo you can do it from the Convertigo Web site. How to Use Convertigo Gadgets in eXo PlatformInstallation of the Convertigo Proxy in your eXo Platform installationSince Convertigo gadgets are hosted on a remote server in the cloud, it is necessary to install a Convertigo Web Application in your existing eXo Platform instance. This application is used as a proxy between your local instance and the Convertigo EMS. To do this just download the convertigo.war available here and deploy it in your application server. If you are running, eXo Platform 3.0.x with Tomcat, copy the convertigo.war in the following folder (this could be done in a running system): $EXO_INSTALL/eXoPlatform-[version]/bin/tomcat6-bundle/webapps Once you have deployed the application you should be able to check that it is installed using the following URL: The "Convertigo EMS (Enterprise Mashup Server)" application should be visible, and look like this:
The Convertigo EMS contains all the projects that were developed and deployed for this demonstration. This is the main entry point to manage applications and gadgets; this is also where we will be registering the gadgets in eXo and where the business logic will be executed. Let's take a look at the content of this application. The "Convertigo EMS" contains all the Convertigo applications that we will be using in this how-to, and are managed using "projects". Each project contains a list of "transactions" that are entry points, accessible as gadgets. Depending on the application requirements, it is possible to use different transactions. In our case where are using the following projects and transactions:
When you put all these gadgets on a page the InteractionHub will automatically wire the gadgets together to provide the following features:
In the current version of the Convertigo Interaction Hub for GateIn, the wiring is done during the development phase in the Convertigo Studio. But it is important to notice that Convertigo is currently working with the eXo and the Red Hat/JBoss community to embed the Interaction Hub in the GateIn portal, enabling GateIn to perform powerful late binding of applications. Now that we have looked at the various projects that contain the gadgets used in our sample dashboard, let's register them in eXo Platform. Register Gadgets into eXo PlatformConvertigo EMS provides 2 ways to integrate gadgets inside eXo, with either a simple remote URL or by providing the gadget code that could be registered inside the product. We will be use the second approach where we will copy the source of the Gadget inside the eXo Application Registry. For this we will be using the eXo Acme Social Intranet instance located at http://127.0.0.1:8080/portal/private/intranet (connect with user root and password gtn). Register the SalesForce Gadget
The SalesForce gadget is now registered in your application registry and available to eXo Platform users. You can now add the other gadgets. Register Other Convertigo GadgetsUsing the approach described above you can now create new gadgets using the following transactions:
Use the Convertigo Gadgets to Build a Composite ApplicationYou can now use these gadgets within your dashboard or inside a portal page. Since some of the applications (such as SalesForce) have a lot of data, it is better to build a new portal page and arrange the gadgets to build a composite application. Create a Business Application page
Using the Gadgets and InteractionsBy clicking on the Then, click on the Google Map button ConclusionIn this how-to you have learned how to:
You can now learn more about the Convertigo development experience on their Web site: |
Subscribe to our newsletter and keep up with the latest eXo news and events.