Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-1939

No longer possible to use KualiModule to load Data Dictionary modules after initial Data Dictionary startup

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.9.3
    • Component/s: Development
    • Labels:
      None
    • Rice Module:
      KNS
    • Application Requirement:
      Rice

      Description

      For example, in SampleAppSpringBeans.xml we have the following:

      <bean id="sampleAppModule" class="org.kuali.core.KualiModule">
      <property name="moduleId" value="sa"/>
      <property name="moduleName" value="Sample App"/>
      <property name="moduleCode" value="sa"/>
      <property name="initializeDataDictionary" value="true"/>
      <property name="dataDictionaryPackages">
      <list>
      <value>classpath:edu/sampleu/travel/datadictionary</value>
      </list>
      </property>
      <property name="databaseRepositoryFilePaths">
      <list>
      <value>OJB-repository-sampleapp.xml</value>
      </list>
      </property>
      </bean>

      It use to be the case that this would load the data dictionary files in the supplied package. It appears that this no longer happens because the DataDictionary.indexSource(...) method just adds the configuration file to a List. Since the KNS itself has already started up by the time this bean has been loaded, the actual configuration file is never loaded.

        Attachments

          Activity

          Hide
          ewestfal Eric Westfall added a comment -

          Resolved this by calling DataDictionary.parseDataDictionaryConfigurationFiles(false) in the onEvent method of KNS Configurer on AfterStartEvent (this hooks into the Spring application context lifecycle).

          Show
          ewestfal Eric Westfall added a comment - Resolved this by calling DataDictionary.parseDataDictionaryConfigurationFiles(false) in the onEvent method of KNS Configurer on AfterStartEvent (this hooks into the Spring application context lifecycle).

            People

            • Assignee:
              ewestfal Eric Westfall
              Reporter:
              ewestfal Eric Westfall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: