<context:load-time-weaver weaver-class="org.jboss.instrument.classloading.JBoss5LoadTimeWeaver"/>
From Spring 3.0 onward, load-time weaving on JBoss Enterprise Application Platform and JBoss Enterprise Web Platform is supported out of the box. The component described in this section can be used to facilitate backwards compatibility, but configuring a custom load-time weaver is not required when using Spring 3.0.
Load-time weaving support is provided by the snowdrop-weaving.jar library.
To perform load-time weaving for the application classes in Spring (either for using load-time support for AspectJ or for JPA support), the Spring framework needs to install its own transformers in the classloader. For JBoss Enterprise Application Platform, JBoss Enterprise Web Platform and JBoss Enterprise Web Server, a classloader-specific LoadTimeWeaver is necessary.
Define the JBoss5LoadTimeWeaver in the Spring application context as shown here:
<context:load-time-weaver weaver-class="org.jboss.instrument.classloading.JBoss5LoadTimeWeaver"/>