Building, Deploying, and Packaging for Distribution
To build, deploy, and package a Junos Space application for
distribution in the SDK IDE, follow these steps:
- Start the Eclipse IDE.
- Select Junos Space > Build/Deploy and Package for
Distribution option in the Eclipse menu bar. The Build/Deploy
screen is displayed.
Alternatively, you can use the Build/Deploy Junos Space
Application button in the toolbar.
- To edit the image details, select the appropriate option in
the wizard. The options are:
- Application Name: It is the name of the Junos Space
- JSVA Host Machine: It is the IP address of the JSVA host
- Company: It is the name of the company, which was
configured while installing the Junos Space SDK.
- Version: It is the version number of the Junos Space
Application, which can be configured in appInfo.xml.
- License: It is the license type of the Junos Space
Application. By default the license type is
- Summary: It is the brief description of the Junos
- Release Date: It is the release date of the Junos
- Validate Application: Select this check-box to validate
the Junos Space Application. For more information
click this link Validating Junos
- Create Application Database: Select this checkbox to
create the application database. Database name is
mentioned in the adjacent field. Note that you cannot use
the database name as build_db as it is the default
database of the Junos Space platform and your application
should not use build_db database.
removes comments and unnecessary white space characters
(space, tab, carriage return). The functionality of the
code remains the same changing the source code.
- Application URLs: Contents of urls.xml and Context URLs
of the application are displayed.
Note: "Create Application Database" option allows you
to change application database related settings. Note that 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
retain the old contents then you must take the backup of the
database, and restore the data manually.
a single JS minified file.
- 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 datasource name lookup
which is configured in persistence.xml file in EJB
project's src/META-INF directory. The mapping between 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.
Click Finish. The Manage URL Access screen
is displayed and the following tasks are performed:
minify and obfuscate.
only minify and not obfuscate.
Once the application is successfully deployed, the Junos
Space application displays a message, "Build, Deploy and
Package Application for Distribution is Successful".
- Builds the EAR of the project and places the EAR file
at EAR's project bin folder.
- If there is any change in the URL settings or
application specific database settings, then it creates
and deploys the new image of the application to the JSVA.
Application image is not copied back in the bin folder of
Note: The application logo is displayed in the main
Note: The SDK plug-in creates image builder
configuration files during build/deploy operation. For more
information about these files refer to Application