| Updated FileBuy instructions |
| Wednesday, 30 August 2006 | |
Although the book already includes instructions on how to build and run the FileBuy application, they will only work out-of-the-box using the setup described in the book (running the entire application on a single machine). The instructions in this page will work in the more general case (running FileBuy with each service deployed on a different machine), and are updated for FileBuy 1.1.MDS SetupThe MDS setup described in the book (setting up the Index Service, and registering the services in the Index Service) is still valid. Seller ComponentTo build the service: ./globus-build-service.sh filebuy_buyer jarStubs To deploy: globus-deploy-gar $EXAMPLES_DIR/org_globus_examples_services_filebuy_transfer.gar globus-deploy-gar $EXAMPLES_DIR/org_globus_examples_services_filebuy_seller.gar AddFile clientTo compile: javac \ To run: java \ Broker ComponentTo build: ./globus-build-service.sh filebuy_seller jarStubs cp $EXAMPLES_DIR/build/lib/org_globus_examples_services_filebuy_seller_stubs.jar \ ./globus-build-service.sh filebuy_broker To deploy: globus-deploy-gar $EXAMPLES_DIR/org_globus_examples_services_filebuy_broker.gar FindFile ClientThis client requires the FileBroker stubs. If the FileBuy source is available in the machine where FindFile will be run, we can simply do this: ./globus-build-service.sh filebuy_broker compileStubs Otherwise, we need to create the JAR files for the stubs, and copy them to the machine which will be using FindFile (that machine will still need GT4 installed to provide all necessary client libraries). To create the JAR file: ./globus-build-service.sh filebuy_broker jarStubs Then, copy file org_globus_examples_services_filebuy_broker_stubs.jar (in directory $EXAMPLES_DIR/build/lib) to the machine that will be running FindFile (make sure the file is is the client's CLASSPATH). To compile the client: javac \ To run: java \ Buyer ComponentTo build: ./globus-build-service.sh filebuy_broker jarStubs
globus-deploy-gar $EXAMPLES_DIR/org_globus_examples_services_filebuy_buyer.gar FileBuy ClientTo compile: javac \ To run: java \ |
|
| Last Updated ( Wednesday, 30 August 2006 ) |




