VariantDraft

CWE-245J2EE Bad Practices: Direct Management of Connections

Category: other

Description

The J2EE application directly manages connections, instead of using the container's connection management facilities. The J2EE standard forbids the direct management of connections. It requires that applications use the container's resource management facilities to obtain connections to resources. Every major web application container provides pooled database connection management as part of its resource management framework. Duplicating this functionality in an application is difficult and error prone, which is part of the reason it is forbidden under the J2EE standard.

Common consequences· 1

  • Other — Quality Degradation

References

  1. https://cwe.mitre.org/data/definitions/245.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
J2EE Bad Practices: Direct Use of Threads
CWE
J2EE Bad Practices: Direct Use of Sockets
CWE
J2EE Bad Practices: Use of System.exit()
CWE
EJB Bad Practices: Use of Sockets
CWE
EJB Bad Practices: Use of Class Loader
CWE
J2EE Misconfiguration: Plaintext Password in Configuration File
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.