Packaging and Deploying MBOs from Unwired WorkSpace

Use command line utilities as an alternative to using Unwired WorkSpace to package and deploy mobile business objects (MBOs).

  1. From Unwired WorkSpace, create a mobile deployment package that contains the MBOs you want to deploy. There are several methods you can use (for example, select File > New > Mobile Deployment Package), as long as the result is a deployment package (a file with a .suppkgdef extension) in the mobile application's project Deployment subfolder.
  2. From WorkSpace Navigator, expand the Project folder and Deployment folder, right-click .suppkgdef and select Build Package (Full). The build process generates a file named <deployment_name>.suppkg, where <deployment_name> is the name of the deployment package, that contains two files:
    • deployment_descriptor.xml
    • deployment_unit.xml
  3. Unzip the <deployment_name>.suppkg file. For command line packaging and deployment, you need only the deployment_unit.xml file.
  4. Modify the deployment_unit.xml file as needed. For example, to change the package name to provide version information, change: package_name="CustomerTest_1.0.0"
  5. To create the package from the command line, go to the directory where package.bat resides and run:
    package <packagename> <host> <port> <loginid> <password>
  6. To deploy the package name that contains the deployment_unit.xml file, go to the directory where deploy.bat resides and run:
    deploy <deploymentUnitFileName> <host> <port> <loginid> <password> <deployMode>