CWE一覧に戻る
CWE-574

EJBのバッドプラクティス:同期プリミティブの使用

EJB Bad Practices: Use of Synchronization Primitives
脆弱性 レビュー中
JA

この製品は、スレッド同期プリミティブを使用することで、Enterprise JavaBeans(EJB)仕様に違反している。

EnterpriseJavaBeans仕様は,すべてのBean提供者が,どのEJBコンテナでもBeanが移植可能で一貫した振る舞いをすることを確実にするために設計されたプログラミング指針の集合に従うことを要求する。この場合,この製品は,次のEJB指針に違反する:"エンタプライズBeanは,複数のインスタンスの実行を同期するためにスレッド同期プリミティブを使用してはならない。"仕様は,この要件を次のように正当化する:"あるEJBコンテナは,すべてのエンタプライズBeanのインスタンスを実行するために単一のJVMを使用するかもしれないが,他のコンテナは,複数のJVMにわたってインスタンスを分散するかもしれないので,この規則は,一貫した実行時セマンティクスを確実にするために要求される。"

EN

The product violates the Enterprise JavaBeans (EJB) specification by using thread synchronization primitives.

The Enterprise JavaBeans specification requires that every bean provider follow a set of programming guidelines designed to ensure that the bean will be portable and behave consistently in any EJB container. In this case, the product violates the following EJB guideline: "An enterprise bean must not use thread synchronization primitives to synchronize execution of multiple instances." The specification justifies this requirement in the following way: "This rule is required to ensure consistent runtime semantics because while some EJB containers may use a single JVM to execute all enterprise bean's instances, others may distribute the instances across multiple JVMs."

Scope: Other / Impact: Quality Degradation
Do not use Synchronization Primitives when writing EJBs.
MITRE公式ページ — CWE-574