Technical Note: Web Services for Remote Portlets for Sun Java System Portal Server 7.1

ProcedureTo Publish Producer Details to the Service Registry

  1. Create an organization data and a producer data file that include the organization and producer details to publish to the service registry.

    The organization data file can contain the following entries:

    org.name=organization-name

    org.description=organization-description

    org.primarycontact.name=contact-name

    org.primarycontact.phoneno=telephone-number

    org.primarycontact.email=email-address


    Note –

    The org.name and org.description entries must be the same as the entries used in Identity Server unless the Service Registry is deployed internally.


    The producer data file should have the following entries:

    producer.name=producer-name

    producer.description=producer-description

    producer.id=producer-ID


    Note –

    To be able to search for the details of producer, organization, or portlet, you must create at least one data file associated with.


  2. Stop and restart the common agent container using the following commands:

    /opt/SUNWcacao/bin/cacaoadm stop

    /opt/SUNWcacao/bin/cacaoadm start

  3. To publish the producer details to the Service Registry, use the following command:

    ./psadmin publish-registry -u amadmin -f password-file -p portal1 -m producer -U producer-data-filename -O organization-data-filename -T portlet-file -L --debug


    Note –

    The portlet-file file specifies the portlets that are offered by the WSRP producer. Type the portlets list is specified as a string within double quotes and elements separated by a space, for example, "NotepadPortlet BookmarkPortlet WeatherPortlet".


    You can check the log file by using the following command:

    more var/opt/SUNWportal/logs/admin/portal.admin.cli.0.0.log


    Note –

    For more information on the psadmin publish-registry commands, refer to psadmin publish-registry in Sun Java System Portal Server 7 Command-Line Reference.