RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
i 9 janvier 2009 17:26 > À : discuss@restlet.tigris.org > Objet : *SPAM(1.8)* RE: Re: SpringBeanRouter issues > > one more thing, if you want to intercept MyResource.represent(Variant), that > won't work with Spring AOP (jdk proxy or cglib). Because this method is > called by Resourc

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
> > However, I'm not sure however about injecting the SpringBeanFinder > > because we need one instance per target resource bean... > > This could be achieved by injecting the bean name (instead of an > instance) and then using the application context to retrieve instances > as needed. > >

Re: SpringBeanRouter issues

2009-01-13 Thread Rhett Sutphin
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -Message d'origine- > De : Daniel Woo [mailto:daniely...@hotmail.com] > Envoyé : vendredi 9 janvier 2009 17:26 > À : discuss@restlet.tigris

Re: SpringBeanRouter issues

2009-01-13 Thread Jerome Louvel
oelios.com -Message d'origine- De : Daniel Woo [mailto:daniely...@hotmail.com] Envoyé : vendredi 9 janvier 2009 17:26 À : discuss@restlet.tigris.org Objet : *SPAM(1.8)* RE: Re: SpringBeanRouter issues one more thing, if you want to intercept MyResource.represent(Variant), that won

RE: Re: SpringBeanRouter issues

2009-01-11 Thread Daniel Woo
one more thing, if you want to intercept MyResource.represent(Variant), that won't work with Spring AOP (jdk proxy or cglib). Because this method is called by Resource.handleGet() You have to intercept Resource.handleGet()/Put()/Post()/Delete(), or use static waver like aspectJ. > I think you

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
I think you can make SpringBeanRouter implement ApplicationContextAware. I made it this way, the AOP interceptor successfully executed. I changed very little to your SpringBeanRouter and SpringBeanFinder: SpringBeanRouter: make it ApplicationContextAware, and holds an ApplicationContext. Each t

RE: Re: SpringBeanRouter issues

2009-01-09 Thread postmaster
>>I haven't run into this because I tend to isolate any logic that needs to be transactional in a single call in the service layer. However, I can't think of a reason why it couldn't be made to work. - Normally I don't use transaction interceptor on resource/action too, but how about secur

Re: SpringBeanRouter issues

2009-01-08 Thread Rhett Sutphin
Hi, On Jan 8, 2009, at 10:14 AM, postmas...@tigris.org wrote: > Hi guys, > > Thanks for your hard work on Restlet with Spring integration, I am > able to integrate them according to the wiki, however I found two > issues > I used SpringServerServlet to load the Application from spring > con

SpringBeanRouter issues

2009-01-08 Thread postmaster
Hi guys, Thanks for your hard work on Restlet with Spring integration, I am able to integrate them according to the wiki, however I found two issues I used SpringServerServlet to load the Application from spring context configuration file appcontext.xml, and the root router is an instance of or