Deploying WSRP Producer and Consumer independently
By trajesh on Mar 14, 2007
Here are the steps for deploying WSRP Producer and WSRP Consumer separately on two different boxes or instances. The deployment diagram is as shown below
To create this deployment configuration, Lets say we have 2 boxes
- Producer box
- Consumer box
as shown in the below image. We install just the WSRP Producer on the Producer box and WSRP Consumer on the Consumer box
Note on WSRP binary :
When you build the WSRP trunk binary. It would have create a "dist" directory with the following contents
- wsrp - binary directory
The wsrp-configurator.jar has a wsrp.zip file that has all the content of the "wsrp" binary directory. You can choose to directly use the wsrp binary directory or even unzip the contents from wsrp-configurator.jar and use it.
For sake of simplicity choose to copy the dist/wsrp directory to a machine where you want to install the WSRP Producer and WSRP Consumer and follow the below mentioned instructions.
Deploying the WSRP Producer :
On the Producer box
ant -verbose -f setup.xml deploy-producer -DSERVER_HOME=/opt/SDK1/ -DSERVER_DOMAIN=/opt/SDK1/domains/domain1/
Use the following command to deploy the WSRP Producer admin portlet
ant -verbose -f setup.xml deploy-producer-admin-portlet -DSERVER_HOME=/opt/SDK1/ -DSERVER_DOMAIN=/opt/SDK1/domains/domain1/
Deploying the WSRP Consumer:
On the Consumer box
ant -verbose -f setup.xml deploy-consumer -DSERVER_HOME=/opt/SDK2/ -DSERVER_DOMAIN=/opt/SDK2/domains/domain1/
Use the following command to deploy the WSRP Consumer admin portlet
ant -verbose -f setup.xml deploy-consumer-admin-portlet -DSERVER_HOME=/opt/SDK2/ -DSERVER_DOMAIN=/opt/SDK2/domains/domain1/
That's it you can access the http://<your-host>:<your-port>/portletdriver/dt on the WSRP Consumer and Producer boxes and administer the respective components. You can point the Consumer to the Producer installation and render the remote portlets exported by the WSRP Producer.