StockQuote サンプルは、コマンド行から実行するスクリプトを使用してアンインストールすることができます。これにより、プロファイルからサンプルを除去することができます。
このタスクについて
WebSphere® ESBのインストール時にサンプル・ギャラリーのインストールを選択すると、StockQuote サンプルも一緒にインストールされます。
これは、その後に作成するすべてのスタンドアロン・プロファイルにサンプルがインストールされることを意味します。スタンドアロンのサンプルを試行してからクリーン・プロファイルの操作を開始する場合、以下の方法を使用してサンプルをアンインストールできます。
手順
- サーバーを始動します。
- Windows プラットフォームでは、コマンド行から、以下のコマンドを入力します。
wsadmin -f install_root¥samples¥bin¥ESBStockQuoteSample¥uninstall.jacl
-cell cell_name -node node_name -dataSourceName CustomerDatabase
-connectionFactoryName StockQuoteReplyQCF -queueName StockQuoteService_Export
-activationSpecName StockQuoteService_ExportAS
-destinationName StockQuoteService_Export
その他のすべてのプラットフォームでは、以下のコマンドを入力します。 wsadmin -f install_root/samples/bin/ESBStockQuoteSample/uninstall.jacl
-cell cell_name -node node_name -dataSourceName CustomerDatabase
-connectionFactoryName StockQuoteReplyQCF -queueName StockQuoteService_Export
-activationSpecName StockQuoteService_ExportAS
-destinationName StockQuoteService_Export
ここで、install_root は
WebSphere ESB のインストール済み環境の場所を表し、cell_name と node_name はプロファイルのセル名とノード名を表します。
タスクの結果
このスクリプトを実行すると、StockQuote サンプルの EAR ファイルがサーバーから除去され、サンプル用に作成されたすべてのリソースが除去されます。