Tutorial – opensocial development environment

Whether you are an avid Eclipse IDE user or not, the task of building OpenSocial applications has now taken a leap forward with the introduction of the Eclipse based OpenSocial Development Environment (OSDE). Database xls With OSDE, it is now possible to build OpenSocial applications directly within Eclipse, as opposed to a live sandbox environment. C database library This means you can easily develop OpenSocial compliant applications entirely in a stand alone manner, within the context of a modern Integrated Development Environment (IDE).

510 k database OSDE provides a rich set of features that both enable and enhance OpenSocial application development for both the client within a gadget, or even on a server using the Java RESTful client libraries.

• A new “OpenSocial” Eclipse perspective that provides enhanced editing and debugging with easy access and control of the local Shindig and social database.

• An OpenSocial REST Java client wizard that can quickly generate a new project along with sample code that uses the OpenSocial RESTful Java client library to connect to the local OpenSocial server.

The simplest way to appreciate all of the features together, is to step through a walkthrough of building both a typical OpenSocial gadget application, as well as a Java client application. How to become a database administrator But before building an application, here’s a quick review of how to install the OSDE plugin.

Installing the OSDE plugin into Eclipse is a simple 1-step process as it doesn’t have any complicated dependencies. Database xml It requires that you have Eclipse version 3.4.1 or later (‘JavaEE Developers’ package is recommended) at a minimum as well as a Java SE Development Kit 5.0 or higher. Database terminology Installation can be done by accessing your Eclipse’s ‘Software Updates’ and adding the new site: ” http://opensocial-development-environment.googlecode.com/svn/update-site/site.xml”. Database theory Once added, you can then easily install the plugin. Database 1 to 1 relationship Upon successful installation of the plugin, your Eclipse IDE requires a restart, and then you’re ready to start building applications using OSDE!

For this walkthrough, we will create the typical OpenSocial “HelloWorld” application, which is a basic app that displays the viewer’s friends. Database testing Before we can have a running app that displays friends however, we’ll need to start the local Shindig server and populate the H2 database with some people/friends data. Database graph Fortunately this step is easily done by either:

For this walkthrough we’ll simply load the sample data. Database naming conventions You don’t have to recreate the sample data each time, however, because they are persisted for future usages.

To load the sample social data, we need to start the local shindig server first. Database entity This is done by clicking the “Launch Apache Shindig server” button on Eclipse’s main toolbar, or by selecting ‘Launch Apache Shindig’ from the OSDE menu. Database developer You will see Shindig start up in the console.