Deploy Photosharing Service
| |
|
|
| |
Table of Contents |
|
| |
|
|
Deploying the PhotoSharing Service
So far, we have installed caGrid, presented a scenario, and configured a secure Tomcat container. Now we will deploy the completed PhotoSharing service that was provided in the hackthon.zip. Once the service has been deployed to a container, it can then be invoked and used to fulfill the needs in our scenario.
Deploy the PhotoSharing Service:
- Open Introduce:

%> cd c:\hackathon\caGrid
%> ant introduce - Click the Deploy Service button
- Browse to the completed photoSharing service: C:\hackathon\PhotoSharing-solution and click Open
- Verify that Tomcat is selected in the deployment location
- Verify the container location is C:\hackathon\apache-tomcat-5.5.27
Service Properties
|
Disable the automatic service registration:
Set the service properties for deployment:
|
Get Your IP Address
We've just finished developing our service and deploying it to Tomcat. Since our hostnames are not registered in DNS, we need to obtain our machine's IP address so that we or our neighbors can access the service.
|
To obtain your IP Address:
|
Registering the PhotoSharing Service
Before we can start the PhotoSharing service, we need to register it via our provided gallery viewer.
|
Register the PhotoSharing Service:
We'll now need to configure the Image Browser to know about our service
|
8. Open the Register for the Tutorial Panel via the Photo Sharing menu and select the Register for the Tutorial menu item.
9. Select your machine's hostname
10. Click Register
Starting Tomcat
Start the Tomcat container so that the service can be invoked.
- Using a Windows Command Prompt
- Change directory to your Tomcat directory
%> cd C:\hackathon\apache-tomcat-5.5.27\bin - Start Tomcat
%> startup.bat
A new Windows command window will open and will contain the startup information from your Tomcat.
Verifying the PhotoSharing Service
|
Verify Service Deployment
|





