Nicolas Le Bas created TILES-551:
------------------------------------

             Summary: ModularTilesInitializer attempts to create and register 
multiple ApplicationContexts in the webapp
                 Key: TILES-551
                 URL: https://issues.apache.org/jira/browse/TILES-551
             Project: Tiles
          Issue Type: Bug
            Reporter: Nicolas Le Bas
            Priority: Minor


When using ModularTilesInitializer, an ApplicationContext can be created by 
each TilesInitializer, which will then be registered into the ServletContext by 
the TilesContainer.

As a result, the registered ApplicationContext may vary depending on the 
classpath order, leading to unreliable results.

Indeed we should use a single ApplicationContext in an application; in any 
case, registering the ApplicationContext with the ServletContext should not be 
the responsibility of the TilesContainer.

As a workaround, use a singleton pattern to create the ApplicationContext in 
each TilesInitializer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to