WebSphere Extended Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

アプリケーション・クライアントの実行

  1. クラスターを開始します。
  2. <WAS_HOME>/bin> ディレクトリーで、以下のコマンドを実行します。
    wpfadmin listActive --a ProxyDSAccountSample --o 200
    活動状態にある 200 個の区画が表示されます。
  3. クライアント・ウィンドウにおいて、<WAS_HOME>/installedApps/<cell>/ ディレクトリーで、次のコマンドを実行します。
    ..¥..¥bin¥launchClient.bat ProxyDSAccountSample.ear -CCBootstrapPort=
    <BOOTSTRAP_PORT> run
    
    
    ここで、BOOTSTRAP_PORT は、このノード内のサーバーのブートストラップ・ポートです (例えば 9811)。 以下の出力が表示されます。
     IBM WebSphere Application Server, Release 6.0
    J2EE Application Client Tool
    Copyright IBM Corp., 1997-2004
    ......
    
    WSCL0035I: Initialization of the J2EE Application Client Environment has completed.
    WSCL0014I: Invoking the Application Client class com.ibm.websphere.proxyds.client.ProxyDSAccountSampleClient
    ----Move partition E0001 and W0001 to different servers using the following command.
    <WAS_DMGR_HOME>/bin/wpfadmin.cmd|wpfadmin.sh move --p E0001|W0001 --d 
    <DESTINATION SERVER>
    ----Press <ENTER> to continue..........
    
    
  4. 前のステップの出力で言及されているコマンドを発行し、区画 E0001 および W0001 を別のサーバーに移動します。次に、Enter キーを押してください。 アプリケーション・クライアント・ウィンドウに以下のように表示されます。
    1.Create Account E_ACCT0001 with balance 1000 for Jian
      in server monkey1Cell01/monkey1Node02/s1
    2.Create Account W_ACCT0001 with balance 2000 for Josh
      in server monkey1Cell01/monkey1Node02/s2
    
    ----Check the server to see the routing is correct.
    ----Check your database. The previous records are added to
      two different databases you have configured.
      Press <ENTER> to continue..........
    
    
    <server1> が区画 E0001 の移動先のサーバーで、 <server2> が区画 W0001 の移動先のサーバーであることを確認してください。
  5. データベースを検査して、アカウント W_ACT0001 が westtest データベースに作成され、アカウント E_ACCT0001 が easttest データベースに作成されていることを確認します。 Enter キーを押してください。アプリケーション・クライアント・ウィンドウに以下のように表示されます。
    3.Delete Account W_ACCT0001
    4.Delete Account E_ACCT0001
    5.Sample finishes
    



Related concepts
区画化機能のプログラミング

Task topic    

Terms of Use | Feedback Last updated: Mar 20, 2006 12:35:11 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/WPF51/twpfrunappclient.html

© Copyright IBM 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)