Broadcast on Broadcast off
The Documentation for Project Zero has moved. Please update your bookmarks to: http://www.projectzero.org/documentation/
Table of
Contents...
Hide

Project Zero Developer’s Guide

Concepts and components
Basic concepts overview
Event processing
Writing Java handlers
Writing Groovy handlers
Firing events
Global Context
Global Context reference
Application directory layout
Virtualized directories
Assemble
PHP
Features and configuration
Configuration
Debugging
Dependencies
Packaging
Application classpath
Logging and tracing
RESTful resources
RESTful documentation
File serving
Response rendering
Validators and validation
HTTP error handling
Calling a remote resource
Using the Connection API
Sending an email using EmailConnection
Configuring destinations
Configuring protocols
Configuring connection handlers
Creating a connection handler
Creating a custom protocol transport
Simple logging connection handlers
Protocol reference
Client programming with Dojo
Runtime options
Deployment modifications
HTTP configuration
SSL configuration
Proxy configuration
Extending the CLI
Security considerations
Authentication
OpenID authentication
Extending security
Security tokens
CSRF prevention support
Extending token support
Leveraging TAI
User service
File based user service
LDAP user service
Extending user service
Security Utilities
Leveraging XOREncoder
Extensions
Atom support
RSS support
JSON support
XMLEncoder
REST to SOAP extension
URIUtils
Developer Web tools
Database setup tools
Configuring data access
Common query patterns
Advanced query patterns
Update patterns
Local database transactions
Extending data access
Configuration vendor differences
PHP data access
Resource model
Configuring ZRM
Resource model declaration
Programmatic model API
HTTP REST API
A ZRM mini tutorial
Active content filtering support
Default filters
Custom filters
Runtime management
Management commands
Zero socket opener
Other extension modules
Amazon E-commerce service
Flickr service
WeatherZero forecast service
Wikipedia service
Reference
Zero command line interface
JavaDoc - Public API
JavaDoc - Public SPI
JavaDoc - All Classes

 

Packaging

Deployment of Project Zero applications is very simple. You can either use the export wizard in the Eclipse plug-in or the command-line 'package' command. In both cases, a simple zip is produced that allows the consumer to simply unzip the package and run it. There are a few options to consider when exporting your application. They are explained below.

Exporting applications in Eclipse

Right-click on the Eclipse project and click Export.... Select the Project Zero Export Wizard and click Next. Then you will be presented with the following dialog:
zeroExportWizard.JPG

You have three things to decide:

  • The directory where the package should be exported.
  • Include source: Select yes to includes the source files (java/*, .classpath, .project). Note: This is required if you will need to import this application back into Eclipse
  • Standalone: This option packages all of the applications dependencies in the zip. Select yes if any of the application's dependencies cannot be resolved from a remote repository that is accessible to the consumer. Also, select yes if any of the dependency requirements are dynamically versioned (e.g. 1.0+) since the consumer of the package could resolve a different version of the package than that which you tested. The only prereqs to run a standalone package are a JDK and the Zero CLI.

Finally, click Finish and you will find a zip file named like <project>-<version>.zip.

Importing applications into Eclipse

To import a zero application that has the source included (see export above), use the following steps:

  1. Click File > Import > General > Existing Projects into Workspace, then select the Select Archive File radio button.
  2. Select Browse... to locate your exported zero zip file (for a project that is not already in your workspace) and click OK.
  3. Click Finish to import the checked project.

Packaging applications with the command-line

There is a zero package command for exporting your applications on the command-line.

You have three main things to decide:

  • -dir: The directory where the package should be exported. The default is <apphome>/export.
  • -includeSrc: 'true' to include the source files (java/*, .classpath, .project).
  • -type: 'shared' (default) or 'standalone'. The standalone option packages all of the applications dependencies in the zip. Select yes if any of the application's dependencies cannot be resolved from a remote repository that is accessible to the consumer. Also, select yes if any of the dependency requirements are dynamically versioned (e.g. 1.0+) since the consumer of the package could resolve a different version of the package than that which you tested.

  Attachment Action Size Date Who Comment
jpg zeroExportWizard.JPG props, move 23.7 K 20 Oct 2007 - 01:02 ajtarter  
r4 - 08 Feb 2008 - 10:46:47 - steveims
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site