13.5. アプリケーションでのレプリケーションのテスト
手順13.4 アプリケーションでのレプリケーションのテスト
最初のサーバーへのアクセス
最初のアプリケーションサーバーへアクセスし、キーと値を入力します。- ブラウザーのウインドウで以下の URL を指定し、最初のアプリケーションサーバーへアクセスします。
http://localhost:8080/jboss-helloworld-jdg
- キー
fooを挿入します。 - 値
barを挿入します。
2 番目のサーバーへのアクセス
2 番目のアプリケーションサーバーへアクセスし、キーと値を入力します。- ブラウザーのウインドウで以下の URL を指定し、2 番目のアプリケーションサーバーへアクセスします。
http://localhost:8180/jboss-helloworld-jdg
- をクリックします。
- キー
fooを取得します。 - をクリックします。
- キー
mykeyを挿入します。 - 値
myvalueを挿入します。
すべてのキーおよび値の取得
最初のサーバーへアクセスし、すべてのキーを要求します。- ブラウザーのウインドウで以下の URL を指定し、最初のアプリケーションサーバーへアクセスします。
http://localhost:8080/jboss-helloworld-jdg
- をクリックします。
- をクリックし、すべてのキーおよび値を要求します。
最後の手順の実行後、各サーバーに追加されたすべてのデータが別のサーバーにレプリケートされます。
注記
事前定義されたサーブレットと対話する場合や、キーを直接キャッシュに保存したり読み出したりする場合は、以下の URL を使用します。
http://localhost:8080/jboss-helloworld-jdg/TestServletPut
http://localhost:8180/jboss-helloworld-jdg/TestServletGet

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.