Junos Space SDK > Developer Guides > Junos Space Application Developer Guide > Programming with the Junos Space SDK > Reference Applications


This topic walks you through the HelloWorld reference application included in the Junos Space SDK. It describes the major steps for creating the application with the Junos Space SDK plug-in and some of the concepts for using the API notification features. The application also demonstrates the Junos Space SDK plug-in capabilities that you can use to create/import the HelloWorld application. It also provides instructions on using the REST Interface Creation wizard in the IDE.

The HelloWorld application has the following options:

HelloWorld Overview

The HelloWorld application was created using the Junos Space SDK with Eclipse SDK IDE and is designed on the "Complete Junos Space Application" model. It provides step-by-step instructions for writing, building, and deploying a CRUD HelloWorld application. The purpose of the HelloWorld reference application is to demonstrate:

This tutorial explains the high-level steps for creating an application using the IDE wizards. Views are also explained. This Junos Space application consists of five Eclipse projects as shown in the Project Explorer of the Eclipse IDE. The application is used to explain the usage of the following concepts:

For example, /api/jssdk/hello-world/world/country/{id} will return a Country object that contains a list of states assigned to it that refers to the states present in the primary collection at /api/jssdk/hello-world/world/states. A secondary collection HATEOAS link is represented as href={href}, while a reference itself can be represented as uri={uri}.

The HelloWorld application can be imported using the Eclipse IDE import wizard, or it can be created from scratch by following the instructions in this tutorial.

Creating the HelloWorld Application

You can start the process of creating the HelloWorld application by launching the Eclipse IDE after uninstalling the SDK plug-in, then clicking the Space button in the icon bar.

Alternatively, you can import the application (which is installed by the SDK installer to a subdirectory ../Juniper Networks/JunosŪ Space SDK/docs/samples/Sample Applications) using the Eclipse import wizard.

HelloWorld Projects

The projects in the HelloWorld application are displayed in the screen below.

The following table provides a description of the projects in the HelloWorld application.

HelloWorld Application Projects
HelloWorld The master HelloWorld project which groups other applications into an EAR package. This project contains the HelloWorld-app-info.xml and HelloWorld-module.xml files as well as the EarContent directory containing the library files shared among other projects.
HelloWorldEJB This project contains the J2EE interfaces and services (the session and entity beans) for the server-side business logic. In the HelloWorld application, EJB creation is done manually. You can use the framework or annotations specific to Junos Space and the regular EJB standards to create EJBs.
HelloWorldWeb This project contains the Web layer for the HelloWorld application. All the necessary Java Script files, images, and servlet generation code resides in this layer. The Web layer is designed from the Sencha designer and styles reference (for more information about Sencha, see Understanding the Ext-JS Designer from Sencha).
HelloWorldWebSvc This project contains the REST Web services for HelloWorld. These Web service resources are generated using the Junos Space SDK REST wizard.
system.sar This project contains pluggable components that allow the HelloWorld application to be plugged into the Junos Space platform environment.