クライアントおよびサーバーの Eclipse Gemini を持つ Eclipse Equinox OSGi フレームワークのインストール

OSGi フレームワークに WebSphere® eXtreme Scale をデプロイするには、Eclipse Equinox 環境をセットアップする必要があります。

このタスクについて

このタスクを実行するには、Blueprint フレームワークをダウンロードしてインストールする必要があります。そうすれば、後で、JavaBeans を構成し、それをサービスとして公開することができます。サービスの使用が重要である理由は、プラグインを OSGi サービスとして公開すれば、そのサービスを eXtreme Scale ランタイム環境が使用できるからです。 製品は、Eclipse Equinox コア OSGi フレームワークの中で、Eclipse Gemini と Apache Aries の 2 つの blueprint コンテナーをサポートします。次の手順を使用して、Eclipse Gemini コンテナーをセットアップします。

手順

  1. Eclipse Web サイト から、Eclipse Equinox SDK Version 3.6.1 以降をダウンロードします。 Equinox フレームワーク用のディレクトリーを作成します。例えば、/opt/equinox です。 以下の説明では、このディレクトリーを equinox_root と呼びます。 圧縮ファイルを equinox_root ディレクトリーに解凍します。
  2. Eclipse Web サイトから、gemini-blueprint 1.0.0 圧縮ファイルをダウンロードします。 ファイルの内容を一時ディレクトリーに解凍し、解凍された次のファイルを equinox_root/plugins ディレクトリーにコピーします。
    dist/gemini-blueprint-core-1.0.0.jar
    dist/gemini-blueprint-extender-1.0.0.jar
    dist/gemini-blueprint-io-1.0.0.jar
    重要: 圧縮された Blueprint ファイルをダウンロードするロケーションに応じて、解凍されたファイルは、次のステップにある Spring フレームワーク JAR ファイルとよく似た拡張 RELEASE.jar を持つことがあります。 ファイル名が config.ini ファイル内のファイル参照と一致することを確認する必要があります。
  3. 次の SpringSource Web ページから、Spring Framework Version 3.0.5 をダウンロードします。http://www.springsource.com/download/community それを一時ディレクトリーに解凍し、解凍された次のファイルを equinox_root/plugins ディレクトリーにコピーします。
    org.springframework.aop-3.0.5.RELEASE.jar
    org.springframework.asm-3.0.5.RELEASE.jar
    org.springframework.beans-3.0.5.RELEASE.jar
    org.springframework.context-3.0.5.RELEASE.jar
    org.springframework.core-3.0.5.RELEASE.jar
    org.springframework.expression-3.0.5.RELEASE.jar
  4. SpringSource Web ページから、AOP Alliance Java アーカイブ (JAR) ファイルをダウンロードします。 com.springsource.org.aopalliance-1.0.0.jar を equinox_root/plugins ディレクトリーにコピーします。
  5. SpringSource Web ページから、Apache commons logging 1.1.1 JAR ファイルをダウンロードします。 com.springsource.org.apache.commons.logging-1.1.1.jar ファイルを equinox_root/plugins ディレクトリーにコピーします。
  6. Luminis OSGi Configuration Admin コマンド行クライアントをダウンロードします。このバンドルを使用して、OSGi 管理構成を管理します。 次の Web ページから、JAR ファイルをダウンロードできます。https://opensource.luminis.net/wiki/display/SITE/OSGi+Configuration+Admin+command+line+client net.luminis.cmc-0.2.5.jarequinox_root/plugins ディレクトリーにコピーします。
  7. 次の Web ページから、Apache Felix file installation Version 3.0.2 バンドルをダウンロードします。http://felix.apache.org/site/index.html org.apache.felix.fileinstall-3.0.2.jar ファイルを equinox_root/plugins ディレクトリーにコピーします。
  8. equinox_root/plugins ディレクトリーの中に、構成ディレクトリーを作成します。例えば次のとおりです。
    mkdir equinox_root/plugins/configuration
  9. 次の config.ini ファイルを、equinox_root/plugins/configuration ディレクトリーの中に作成します。このとき、equinox_root を、使用する equinox_root ディレクトリーの絶対パスに置き換え、各行の円記号 (¥) の後のすべての後続スペースを削除します。ファイルの最後に、ブランク行を含める必要があります。例えば次のとおりです。
    osgi.noShutdown=true
    osgi.java.profile.bootdelegation=none
    org.osgi.framework.bootdelegation=none
    eclipse.ignoreApp=true
    osgi.bundles=¥
    org.eclipse.osgi.services_3.2.100.v20100503.jar@1:start, ¥
    org.eclipse.osgi.util_3.2.100.v20100503.jar@1:start, ¥
    org.eclipse.equinox.cm_1.0.200.v20100520.jar@1:start, ¥
    com.springsource.org.apache.commons.logging-1.1.1.jar@1:start, ¥
    com.springsource.org.aopalliance-1.0.0.jar@1:start, ¥
    org.springframework.aop-3.0.5.RELEASE.jar@1:start, ¥
    org.springframework.asm-3.0.5.RELEASE.jar@1:start, ¥
    org.springframework.beans-3.0.5.RELEASE.jar@1:start, ¥
    org.springframework.context-3.0.5.RELEASE.jar@1:start, ¥
    org.springframework.core-3.0.5.RELEASE.jar@1:start, ¥
    org.springframework.expression-3.0.5.RELEASE.jar@1:start, ¥
    org.apache.felix.fileinstall-3.0.2.jar@1:start, ¥
    net.luminis.cmc-0.2.5.jar@1:start, ¥
    gemini-blueprint-core-1.0.0.jar@1:start, ¥
    gemini-blueprint-extender-1.0.0.jar@1:start, ¥
    gemini-blueprint-io-1.0.0.jar@1:start

    既に環境をセットアップしている場合は、次のディレクトリーを削除することで、Equinox プラグイン・リポジトリーをクリーンアップできます。equinox_root¥plugins¥configuration¥org.eclipse.osgi

  10. 次のコマンドを実行して、Equinox コンソールを開始します。

    別のバージョンの Equinox を実行している場合、JAR ファイル名は次の例の中のものと異なります。

    java -jar plugins¥org.eclipse.osgi_3.6.1.R36x_v20100806.jar -console