Hello ! There's some questions are raised again when trying to start up restlet project with Spring. During development i do have some deep feeling that restlet has not much robust Spring integration. Especially in cases similar to mine, when one wants Sprign to be a caontainer and instantianor of all restlet classes.
1. why SpringBeanFinder uses BeanFactory instead of ApplicationContext According to Spring 2.5 docs >>> Short version: use an ApplicationContext unless you have a really good reason for not doing so. For those of you that are looking for slightly more depth as to the 'but why' of the above recommendation, keep reading. ..... Versions of Spring 2.0 and above make heavy use of the BeanPostProcessor extension point (to effect proxying and suchlike), and if you are using just a plain BeanFactory then a fair amount of support such as transactions and AOP will not take effect (at least not without some extra steps on your part), which could be confusing because nothing will actually be wrong with the configuration. >>> They even provide compatibility matrix for this :) 2. Why whole Spring configuration can not be done in SpringRouter style, e.g. configure via map of /URL -> restlet/resource. Now, IMO, its not really straighforward how to configure restlet and resources with SpringRouter/SpringBeanRouter. Seems in cases of restlet one needs to use one classs in case of restlet - other. According to code of SpringRouter it totally ignores the case when i want use Resource configured in Spring (with dependencies etc). I think its can bea easy achieved by making SpringRouter to implement ApplicationContextAware and by adding some logic to analyze all cases. Well sorry for lot of text probabaly not well written :) Will be appreciate for any response. Maybe i havent found related open issues in issue tracking or in case you need any help on better spring integration or idea i will be glad to help -- Regards, Evgeny Shepelyuk ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1257016

