Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2494

JCR Registration should be disabled by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JCR Registration 1.0.0
    • JCR Registration 1.0.0
    • JCR
    • None

    Description

      The current set of JCR registration component RmiRegistrationSupport and JndiRegistrationSupport have Component-> immediate set to true which causes them to activate on default startup. This behavior should be changed to false with activation policy set to ConfigurationPolicy.REQUIRE i.e. should be an opt in activation. For both components the default behavior causes issue

      RmiRegistrationSupport - It causes issue in embedding Sling in an AppServer application as the default RMI port is already in use.
      JndiRegistrationSupport - The default config refer to org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory which is part of Jackrabbit core bundle which is already in OSGi. In my case I need to use com.day.util.jndi.provider.MemoryInitialContextFactory as that is the one present in parent classloader.

      Hence in both cases we see exception stacktrace on the first startup and then a user needs to modify the values. For now I am able to workaround that by provide explicit config in packaged war which disables RMI support but it would be helpful if the default behavior is changed

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: