Service Registry 3 2005Q4 Developer's Guide

Creating an Organization: Examples

For examples of creating an organization, see JAXRPublishOrg.java and JAXRPublishOrgNoPC.java in the directory <INSTALL>/registry/samples/organizations/src.

The JAXRPublishOrg example creates an organization, its primary contact, and a service and service binding. The example displays the unique identifiers for the organization, user, and service so that you can use the identifiers later when you delete the objects. This example creates a fictitious User as the primary contact for the organization.

The other example, JAXRPublishOrgNoPC.java, does not set a primary contact for the organization. In this case, the primary contact by default is the User who is authenticated when you run the program.

ProcedureTo Run the JAXRPublishOrg and JAXRPublishOrgNoPC Examples

Steps
  1. Go to the directory <INSTALL>/registry/samples/organizations.

  2. Type the following commands:


    asant pub-org
    asant pub-org-nopc