Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-beta9
    • Component/s: None
    • Labels:
      None

      Description

      Currently, Lookup plugins [1] don't support JNDI resources.
      It would be really convenient to support JNDI resource lookup in the configuration.

      One use case with JNDI lookup plugin is as follows:
      I'd like to use RoutingAppender [2] to put all the logs from the same web application context in a log file (a log file per web application context).
      And, I want to use JNDI resources look up to determine the target route (similarly to JNDI context selector of logback [3]).

      Determining the target route by JNDI lookup can be advantageous because we don't have to add any code to set properties for the thread context and JNDI lookup should always work even in a separate thread without copying thread context variables.

      [1] http://logging.apache.org/log4j/2.x/manual/lookups.html
      [2] http://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender
      [3] http://logback.qos.ch/manual/contextSelector.html

        Activity

        Hide
        Woonsan Ko added a comment -

        Thank you so much, Ralph!
        I appreciate for the site documentation as well.

        Cheers,

        Woonsan

        Show
        Woonsan Ko added a comment - Thank you so much, Ralph! I appreciate for the site documentation as well. Cheers, Woonsan
        Hide
        Ralph Goers added a comment -

        Your patch was committed in revision 1504620. Please verify and close.

        Show
        Ralph Goers added a comment - Your patch was committed in revision 1504620. Please verify and close.
        Hide
        Woonsan Ko added a comment - - edited

        Hi,

        I've just attached a patch (jndi-lookup-plugin.patch) to provide built-in JNDI resource Lookup plugin with unit tests.
        Please take a review.

        Cheers,

        Woonsan

        Show
        Woonsan Ko added a comment - - edited Hi, I've just attached a patch (jndi-lookup-plugin.patch) to provide built-in JNDI resource Lookup plugin with unit tests. Please take a review. Cheers, Woonsan

          People

          • Assignee:
            Unassigned
            Reporter:
            Woonsan Ko
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development