Junos Space SDK > Developer Guides > Junos Space Application Developer Guide > Programming with the Junos Space SDK > Using the Junos Space SDK Plug-in > Building, Deploying, and Uninstalling the Application

Building and Deploying the Application

This topic describes how to build and deploy a Junos Space application, including how to create an application database.

To build and deploy a Junos Space application:

  1. Start the Eclipse IDE.
  2. Select Junos Space > Build/Deploy Junos Space Application option. The Build/Deploy screen is displayed.


    Alternatively, click the Build/Deploy Junos Space Application button in the toolbar.


  3. To edit the image details, select the appropriate options in the wizard.


    The options are:

    • Application Name—The name of the Junos Space Application.
    • JSVA Host Machine—The IP address of the JSVA host computer.
    • Application Vendor ID—The Vendor ID registered with the SDK during SDK installation, or when applying for a vendor certificate.
    • Application Version—The version number of the Junos Space Application, which can be configured in appInfo.xml.
    • License—The license type of the Junos Space Application. By default the license type is "Commercial".
    • Release Date—The release date of the Junos Space Application.
    • Validate Application—Select this check-box to validate the Junos Space Application. For more information, see Validating Junos Space Application
    • Create Application Database—Select this check-box to create the application database. The database name is displayed in the adjacent field. Note that you cannot use build_db as the database name because it is the default database name of the Junos Space platform.
      • The "Create Application Database" option allows you to change application database related settings. However, if you rename a database using the Change button, the old database is dropped and replaced with the new one. The contents of the existing database are lost. If you want to keep the old contents, you must make a backup of the database and restore the data manually.
      • If the "Create Application Database" option is checked, a new database is created. You can access the database from your application's code by using the data source name lookup, which is configured in the persistence.xml file in the EJB project's src/META-INF directory. The mapping between the Data Source name and the database name is defined in the mysql-<APPNAME>-ds.xml file, which is created in EAR project's config directory.
      • If the "Create Application Database" option is cleared, the old database is dropped.
    • Application URIs—The contents of urls.xml and the context URLs of the application are displayed.
    • Builds the EAR of the project and places the EAR file in the EAR's project bin folder.
    • If there is any change in the URL settings or application-specific database settings, it creates and deploys the new image of the application to the JSVA. The application image is not copied back in the bin folder of the EAR Project.
  4. Click Finish. Once the application is successfully deployed, the Junos Space application displays a message, "Build/Deploy Application Image is Successful".


    Note: The application name will be listed in Administration > Application. And it can be selected and launched from the application drop-down list logo displayed in the main UI.

    Note: The SDK plug-in creates image builder configuration files during the build/deploy operation. For more information about these files, see the Application Structure section.