Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-212

Spring application context in Magnolia

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    Description

      I have been struggling to get a grasp of the best practises when it comes to spring and magnolia.
      I have started creating my own project and i have the following modules:

      • myProject-webapp
      • myProjectControllers
      • myProjectServices

      myProjectControllers module holds controllers that are accessible externally, i.e used for ajax. to achieve that i followed Additional DispatcherServlets and AJAX calls example.

      Now what i want is that within my controllers i could @Autowired some beans that are in my myProjectServices module.
      Todo this I first need to declare my beans, which means that within myProjectServices i need to declare an applicationcontext.xml where i could declare my beans.

      So my question is where and how do i declare this applicationcontext.xml so that the beans within it can be accessible by myProjectControllers module ?

      P.S note i have not yet installed Blossom only added dependency to spring in all my modules, as i did not think i needed blossom yet.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              g.zalys@hotmail.com Gediminas Zalys
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR