Questo contenuto non è disponibile nella lingua selezionata.
13.5. Test Replication on the Application
Procedure 13.4. Test Replication on the Application
Access the First Server
Access the first application server and enter the key and value.- Access the first application server in a browser window using the following URL:
http://localhost:8080/jboss-helloworld-jdg
http://localhost:8080/jboss-helloworld-jdg
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Insert the key
foo
. - Insert the value
bar
.
Access the Second Server
Access the second application server and enter the key and value.- Access the second application server in a browser window using the following URL:
http://localhost:8180/jboss-helloworld-jdg
http://localhost:8180/jboss-helloworld-jdg
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Click.
- Get the key
foo
. - Click.
- Insert the key
mykey
. - Insert the value
myvalue
.
Get All Keys and Values
Access the first server and request all keys.- Access the first application server in a browser window using the following URL:
http://localhost:8080/jboss-helloworld-jdg
http://localhost:8080/jboss-helloworld-jdg
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Click.
- Clickto request all key and values.
As the results of the last step show, all the data added at each server has been replicated to the other server.
Note
60
seconds from the most recent update.
To interact with predefined servlets or to directly store and retrieve keys from the cache, use the following URLs:
http://localhost:8080/jboss-helloworld-jdg/TestServletPut
http://localhost:8080/jboss-helloworld-jdg/TestServletPut
http://localhost:8180/jboss-helloworld-jdg/TestServletGet
http://localhost:8180/jboss-helloworld-jdg/TestServletGet