Show Table of Contents
3.2.12. JBoss AOP 変更
3.2.12.1. JBoss AOP を使用するアプリケーションの更新
JBoss AOP (Aspect Oriented Programming) は JBoss EAP 6 には含まれていません。以前のリリースでは、JBoss AOP は EJB コンテナによって使用されていましたが、JBoss EAP 6 では EJB コンテナは新しいメカニズムを使用します。アプリケーションが JBoss AOP を使用する場合、次のようにアプリケーションコードを変更する必要があります。
アプリケーションのリファクタリング
- 以前、
ejb3-interceptors-aop.xmlファイルで行われた標準的な EJB3 設定は、サーバー設定ファイルで設定されるようになりました。スタンドアロンサーバーの場合、このファイルはstandalone/configuration/standalone-full.xmlファイルになります。サーバーが管理ドメインで実行されている場合はdomain/configuration/domain.xmlファイルになります。 - サーバー側の AOP インターセプターが標準の Java EE
Interceptorを使用するよう変更する必要があります。コンテナインターセプターの詳細や、アプリケーションでクライアント側インターセプターを使用する方法については、https://access.redhat.com/site/documentation/JBoss_Enterprise_Application_Platform/ にある JBoss EAP 6 向け『開発ガイド』の章「コンテナインターセプター」を参照してください。
JBoss AOP ライブラリーの使用
- コードをリファクタリングできない場合は、JBoss AOP ライブラリーのコピーを取得し、そのコピーとアプリケーションをバンドルできます。AOP ライブラリーは JBoss EAP 6 で動作することがありますが、デプロイされません。手動でデプロイするには、サーバーの起動時にコマンドライン引数
-Djboss.aop.path=PATH_TO_AOP_CONFIGを使用します。注記
JBoss AOP ライブラリーは JBoss EAP 6 で動作することがありますが、この設定はサポートされません。

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.