Hi,
I'm trying to do a simple AOP example, but it's not working, I'm having problems in my XML configuration file and here's the my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans
PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<bean id = "singerAspect" class = "vassili.SingerAspect"/>
<aop:config>
<aop:aspect ref = "singerAspect">
<aopointcut id = "singerPointcut"
expression = "execution(* *.sing(..)) and target(bean)"/>
<aop:before method = "beforeSinging" pointcut-ref = "singerPointcut" arg-names = "bean"/>
<aop:after-returning method = "afterSinging" pointcut-ref = "singerPointcut" arg-names = "bean"/>
</aop:aspect>
</aop:config>
</bean>
Is there something wrong with the XML file ?
Please i need help ...
Thanks in advance ...


ointcut id = "singerPointcut"
Reply With Quote