Uploaded image for project: 'Pax Logging'
  1. PAXLOGGING-250

Log4j2 - JNDI based JDBC appender should be more lazy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 1.11.0, 2.0.0
    • Components: None
    • Labels:
      None
    • Sprint:

      Description

      JdbcAppender with:

      # JDBC Appender
      log4j2.appender.jdbc.type = JDBC
      log4j2.appender.jdbc.name = JdbcAppender
      log4j2.appender.jdbc.tableName = EVENTS
      log4j2.appender.jdbc.cs.type = DataSource
      log4j2.appender.jdbc.cs.jndiName = osgi:service/jdbc/logdb
      ...

      should work better in OSGi Env, where initially (when pax-logging-log4j2 bundle starts) neither the data source nor even JNDI infra (aries-jndi) may be available yet.

        Attachments

          Activity

            People

            • Assignee:
              Grzegorz Grzybek
              Reporter:
              Grzegorz Grzybek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: