![]() | |
Sun Java System Portal Server 6 2005Q4 Technical Reference Guide |
Chapter 11
pdeployThis chapter contains the following sections
DescriptionThe pdeploy is a command line tool that can be used to deploy and undeploy the portlet web application into the portal server.
The pdeploy command requires:
Some of the default settings used by the pdeploy command to deploy portlet applications are available in the PDConfig.properties file. This file is installed into the /etc/opt/SUNWps/portlet directory.
When the pdeploy command deploys the portlet application, it refers to the following parameters in the PDConfigure.properties file:
SyntaxThis section describes the pdeploy command syntax.
Short-Named Format
pdeploy deploy -u uid -w password {-g|-d dn} -p webcontainerpassword -V -r rolesfile -f userinfofile -v -l warfile
pdeploy undeploy -u uid -w password {-g|-d dn} -p webcontainerpassword -V -v -l warfile
Long-Named Format
pdeploy deploy --runasdn uid --password password {--global|--dn dn} --wc_password webcontainerpassword --rolesfile rolesfile --userinfofile userinfofile --verbose --locale warfile
pdeploy deploy --help
pdeploy deploy --version
pdeploy undeploy --runasdn uid --password password {--global|--dn dn} --wc_password password --verbose --locale portletwebapp
pdeploy undeploy --help
pdeploy undeploy --version
SubcommandsThe pdeploy command takes these subcommands:
deploy
Description
If the subcommand is deploy, the pdeploy command deploys the portlet web application into the portal server. After this command completes, you can create channels based on the portlets defined in the deployed portlet web application.
Syntax
pdeploy deploy -u uid -w password {-g|-d dn} -p webcontainerpassword warfile
pdeploy deploy -h|--help
Options
The following table, which describes what options are supported, contains two columns: the first column lists the possible options for the deploy subcommand; the second column gives a brief description.
The following table contains two columns. The first column lists the operands for the deploy subcommand; the second column gives a brief description.
Examples
In the following example, the pdeploy command deploys the /tmp/SamplePortletApp.war into the portal server.
pdeploy deploy -u "uid=amAdmin,ou=people,o=sesta.com,o=isp" -w admin -p sunone -g /tmp/SamplePortletApp.war
Sometimes the portlet application defines logical roles in the portlet.xml file. During deployment, the logical roles need to be mapped to the actual roles defined in the system. To accomplish this, supply a role mapping file.
The role mapping file is expected to contain ActualRole=LogicalRole entries. The file supplied must follow Java property file format. For example:
cn—HRManager,dc—iplnaet,dc—com=Manager
cn—Emp,dc—iplnaet,dc—com=Employee
The following pdeploy command will provide the role mapping file for deploying the SamplePortletApp.war file into the portlet application.
pdeploy deploy -u "uid=amAdmin,ou=People,o=sesta.com,o=isp" -w admin -p sunone -r /tmp/RoleMaps -g /tmp/SamplePortletApp.war
Sometimes the portlet application will need access to the information associated with each user. During deployment, logical user information entry name must be mapped to the actual user information entry name defined in the system. To accomplish this during deployment, a user information entry map can be supplied.
The user information file is expected to contain ActualEntryName=LogicalEntryName entries. For example:
lastname=lname
firstname=fname
The following deploy command will provide the user information file for deploying the SamplePortletApp.war file into the portlet application.
pdeploy deploy -u "uid=amAdmin,ou=People,o=sesta.com,o=isp" -w admin -p sunone -f /tmp/UserInfoMaps -g /tmp/SamplePortletApp.war
undeploy
Description
The undeploy subcommand removes the portlet application from the portal server. However, it does not remove all the channel definitions already created for portlets defined in the portlet web application. All channels associated with the portlet web application (being removed) must be manually removed.
Syntax
pdeploy undeploy -u uid -w password {-g|-d dn} -p webcontainerpassword -v portletwebapp
pdeploy undeploy -h|--help
Options
The following table describes what options are supported and contains two columns: the first column lists the possible options for the undeploy subcommand; the second column gives a brief description.
The following table describes what operands are supported and contains two columns: the first column lists the possible operands for the undeploy subcommand; the second column gives a brief description.
portletwebapp
Specifies the name of the deployed portlet web application. Typically, it is the same name as the war file name without the .war extension.
Example
The following pdeploy command undeploys the portlet web application named SamplePortletApp from the portal server.
pdeploy undeploy -u "uid=amAdmin,ou=People,o=sesta.com,o=isp" -w admin -g