Announcement Announcement Module
No announcement yet.
Help with putting transactions around webwork actions Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Well, this is why I asked what version you were using, as some of the stuff changed from 1.1 to 1.1.1. Now, while there have been changes since 1.1.1, they shouldn't really affect any of this. The code you show seems to be from 1.1.1, and even in that version (never mind CVS head) there should be no issue.

    Originally posted by futang
    Colin, thank you for all your help with this. It is far more likely you are correct, but here is the process as I understand it (with Spring 1.1). Within createAdvisorChain the following code is executed (pasted verbatim)

    // add a named interceptor
    Object advice = null;
    // avoid unnecessary creation of prototype bean just for advisor chain initialization
    if (isSingleton() || this.beanFactory.isSingleton(this.interceptorNames[i])) {
        advice = this.beanFactory.getBean(this.interceptorNames[i]);
    addAdvisorOnChainCreation(advice, this.interceptorNames[i]);
    Even in 1.1.1, you should never get here for the last name in the interceptor names list. There is a continue up above it that will cause the loop to continue and never get down here...


    • #17
      Not sure what was going on, but it works fine in 1.1.1. Thank you for your help.