Select a piece of software, retrieve it following four different approaches and download it on your computer.
- HTTP method: an http connection is established with the remote server and the selected piece is retrieved and download at the same time.
- CORBA method: a connection with a remote CORBA server is established; the piece is requested by invoking a remote service; after the retrieval, the piece can be downloaded on the computer.
- REMOTE method: a mobile agent is created remotely on the remote server; this agent requests the selected piece by invoking a CORBA method; then, the mobile agent returns to our computer and the piece of software can be downloaded.
- MOBILE method: like the REMOTE method, but the mobile agent is initially created locally and then it travels to the remote server by itself.
REQUIREMENTS
- Java Plug-in 1.3.1, which is distributed with JDK1.3.1.
- Security permissions
Permission | Target Name | Actions |
java.net.SocketPermission | * | accept, connect, listen, resolve |
java.io.SerializablePermission | enableSusbstitution |
|
java.lang.RuntimePermission | createClassLoader |
|
java.lang.RuntimePermission | accessDeclareMembers |
|
java.io.FilePermission | c:\temp (or anyone you like) | write |
java.io.FilePermission | c:\temp\* (or anyone you like) | write |
How to add the above permissions to your local JVM:
- Execute policytool
- Press the button "Add Policy Entry" (the file you are editing is the default one in your system)
- Enter "http://sid.cps.unizar.es:9000/" as "CodeBase" field
- For each row in the above table:
- Press the button "Add Permission"
- Enter the permission data of the corresponding row into the form
- Press OK
- Press "Done"
- Menu "File", option "Save" (it could be saved as ".java.policy" in c:\windows)
- Exit the policytool
- Restart web browser
- Execute Download Test
SOURCES