このコンテンツは選択した言語では利用できません。
12.5. Test Replication on the Application
Use the following instructions to test that cache entries are replicating from the first server instance to the second as desired.
Procedure 12.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
- 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
- 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
- Click.
- Clickto request all key and values.
Result
As the results of the last step show, all the data added at each server has been replicated to the other server.
Note
Entries expire after
60
seconds from the most recent update.
Directly Access Keys in the Cache
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:8180/jboss-helloworld-jdg/TestServletGet