Install Gateway in Configure Later mode.
Modify the attributes in example2.xml file appropriately and run the ./psconfig --config example2.xml command.
Copy the /opt/SUNWportal/template/sra/GWConfig.properties.template and modify the attributes appropriately.
Run the ./psadmin create-sra-instance --adminuser amadmin --passwordfile passwordfile -S GWConfig.properties -t gateway --restrictive command.
Run the ./psadmin start-sra-instance --user username --passwordfile passwordfile -N gatewayprofile -t gateway --restrictive command to start the Gateway instance created.