Skip to content

Split JNDI support out of log4j-jdbc #1914

Closed
@ppkarwasz

Description

@ppkarwasz

Currently the log4j-jdbc appender has an optional dependency on log4j-jndi.

In order to remove this optional dependency, I propose to:

  • create a new module log4j-jdbc-jndi and depends on log4j-jdbc and log4j-jndi and contains the DataSourceConnectionSource and inlined code from JndiUtil,
  • remove the dependency on log4j-jndi from log4j-jdbc.

From a user perspective:

  • most users will require just the log4j-jdbc-dbcp2 module,
  • some Java EE/Jakarta EE users will require the log4j-jdbc-jndi module,
  • the log4j-jdbc module could be considered as an internal dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appendersAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appender

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions