Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

sebastian ismael

Greenhorn
+ Follow
since May 13, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sebastian ismael

hi arnel, i�m from argentina, sorry for my english !!!

i have the same problem!!! please help me:

ApplicationContext context = new FileSystemXmlApplicationContext("C:\\eclipse3.0\\workspace\\SpringTest\\war\\WEB-INF\\SpringTest-servlet.xml");
Product product = (Product)context.getBean("product") ;

my xml is:

<!-- Bean configuration -->
<bean id="product" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>com.test.security.SecurityAdvices</value>
</property>
<property name="target">
<ref local="productTarget"/>
</property>
<property name="interceptorNames">
<list>
<value>securityAdvisor</value>
</list>
</property>
</bean>

<!-- Bean Classes -->
<bean id="productTarget" class="com.test.business.beans.Product">
</bean>

<!-- Advisor pointcut definition for after advice -->
<bean id="securityAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice">
<ref local="securityAdvice"/>
</property>
<property name="pattern">
<value>.*</value>
</property>
</bean>

<!-- Advice classes -->
<bean id="securityAdvice" class="com.test.aop.BeforeCreateBusinessObjectBeanAdvice"/>

regars !!!

seba