|
From: Alexandru P. <the...@ez...> - 2005-03-28 07:20:04
|
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. |
|
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::.| |
|
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::.| |
|
From: Rod J. <ro...@in...> - 2005-04-05 13:10:49
|
Alexandru Popescu wrote: > [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? You should be able to subclass TransactionAspectSupport. I pulled it out in 1.1 to allow AspectJ or AspectWerkz aspects to provide Spring transaction advice. |
|
From: Rod J. <ro...@in...> - 2005-04-05 13:17:44
|
Alexandru Popescu wrote: > [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. What's the value of benchmarking just advice overhead where transaction management is concerned? Actually enlisting the resources is likely to be the key cost, and the other overhead is less significant. I would suggest the benchmarks don't use a mock transaction interceptor as in your code below, but the real Spring TransactionInterceptor and a real PlatformTransactionManager. R >> >>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 > -- Rod Johnson Interface21 - Spring Services from the Source http://www.springframework.com Founder, Spring Framework: http://www.springframework.org Author, "Expert One-on-One J2EE Development Without EJB" (May 2004, with Juergen Hoeller). http://www.amazon.com/exec/obidos/ASIN/0764558315/ Author, "Expert One-on-One J2EE Design and Development" (October 2002). http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/ ____________________________________________________ Interface21 Limited Registered Office Summit House, 2-2a Highfield Road, Dartford, Kent DA1 2JY Registered in England and Wales No. 5187766 ____________________________________________________ |