<PS_INSTALL_DIR>/SUNWportal/bin/psadmin deploy-portlet -u amadmin -f ps_password -m portal1 -d <dn for which you want to deploy the portlet> helloworld.war
You can also see ./psadmin deploy-portlet --help
To undeploy
./psadmin undeploy-portlet -u amadmin -f ps_password -m portal1 -d <dn for which you want to undeploy the portlet> helloworld
> <PS_INSTALL_DIR>/SUNWportal/bin/psadmin
> deploy-portlet -u amadmin -f ps_password -m portal1
> -d <dn for which you want to deploy the portlet>
> helloworld.war
>
> You can also see ./psadmin deploy-portlet --help
>
> To undeploy
>
> ./psadmin undeploy-portlet -u amadmin -f ps_password
> -m portal1 -d <dn for which you want to undeploy the
> portlet> helloworld
Are the above commands same for all the portal servers or do they vary depending upon the servers?
These commands are specific to Sun Portal server. If you want to deploy and test your portlets you can download the Open Source Portlet Container from https://portlet-container.dev.java.net . Once your portlet is working fine, you can use the commands mentioned above to deploy on the Sun Portal Server.
You can also use Netbeans Portal Pack(http://portalpack.netbeans.org), which is a Netbeans Plugin to develop and test portlets .