|
From: Alexandru P. <the...@ez...> - 2005-03-29 20:04:44
|
[quote Alexandru Popescu::on 3/29/2005 12:07 AM] > [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::.| > > > ------------------------------------------------------- > 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 > > Hi guys! I am wondering what's wrong with my question: 1/ isn't this the right place to answer this? 2/ is it a really bad/uninteresting question? 3/ a combination of the aboves? hopefully somebody will drive me to the right direction. i really need your feedback and I don't want to publish something that is completely wrong from the start just to have it afterwards criticized/fixed, etc. tia, -- :alex |.::the_mindstorm::.| |