[jboss-user] [JBoss AOP] - Re: error when introducing method in class

stalep do-not-reply at jboss.com
Wed Nov 1 04:27:06 EST 2006

hi, you have an error in your jboss-aop.xml file, you need to wrap the introduction defenitions in a mixin tag, eg:

  | <aop>
  |    <introduction class="Calculator">
  |       <mixin>
  |           <interfaces>
  |               Main
  |            </interfaces>
  |            <class>
  |               MainImpl
  |            </class>
  |            <construction>
  |               new MainImpl()
  |            </construction>
  |        </mixin>
  |     </introduction>
  | </aop>
i tried the rest of your code in a small app and it worked as expected.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982319#3982319

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982319

More information about the jboss-user mailing list