Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-5200

Mule parser can't handle references to Spring beans in parent context

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix or Usage Issue
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Core: Configuration
    • Labels:
      None
    • User impact:
      Medium
    • Similar Issues:

      Description

      The gist of that question is I couldn't get the custom-security-provider to pick up the Spring Security authentication manager that is defined in the parent context of a "Spring-first" context configuration. I think I've found that it's an impossible configuration.

      Because the BeanDefinitionBuilder doesn't have access to the parent WebApplicationContext, it seems the bean would have to be defined as lazy so it's not resolved until after the BeanDefinitionReader is done.

      But there's no way to set the lazy flag on the custom-security-provider, so it seems like it won't work.

      Maybe it's a bad idea to use this "Spring first" pattern. I initially liked it because there's a clean separation between the Mule and Spring contexts, which would hopefully make it easier to separate later.

      For what it's worth, CXF has no problem picking up parent context beans in a similar configuration.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                topping Brian Topping
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: