|
From: Alexandru P. <the...@ez...> - 2005-03-28 21:09:22
|
[quote Alexandru Popescu::on 3/28/2005 10:18 AM] > Hi! > > I am trying to implement a more fine-grained declarative transaction support for Spring based on > AspectWerkz. While the things are looking pretty clean I would like to ask you how I can drive some > small benchmark upon the declarative transaction support offered by Spring? > > Details: > what I really need is some why to quantify the time spent by TransactionInterceptor.invoke method as > against a method call and an AspectWerkz advised method call. Most probably, my need is to have a > new TransactionProxyFactoryBean using a dummy TransactionInterceptor. > > Pls let me know if such a thing is already existing in the current codebase (maybe in the tests) or > if i am looking at the problem from a bad angle. > > tia, > -- > :alex |.::the_mindstorm::.| > > ps: i will publish my result (including the AW code) as soon as i will be able to drive this small > benchmark. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > I would like to ask you if this is the correct way to set up a proxied invocation with Spring: public interface ITransactionable { void publicMethod(); } public class MockTransactionable implements ITransactionable { public void publicMethod() { } } public class MockTransactionInterceptor implements MethodInterceptor { public Object invoke(MethodInvocation method) throws Throwable { return method.proceed(); } } ProxyFactory proxyFactory = new ProxyFactory(new Class[] {ITransactionable.class}); proxyFactory.setTarget(new MockTransactionable()); proxyFactory.addAdvice(new MockTransactionInterceptor()); ITransactionable springProxy = (ITransactionable) proxyFactory.getProxy(); tia, -- :alex |.::the_mindstorm::.| |