Hi again, Could you be more precise? Do you want to load your XML/properties once per application instantiation, or each time a request is coming?
For the former case, you can try using the WADL extension, especially the WadlApplication, at least as a source of inspiration: http://www.restlet.org/documentation/snapshot/ext/org/restlet/ext/wadl/WadlA pplication.html There is also a related RFE for 1.2: "Extend XML configuration scope" http://restlet.tigris.org/issues/show_bug.cgi?id=449 Best regards, Jerome -----Message d'origine----- De : news [mailto:[EMAIL PROTECTED] De la part de Surjendu Envoyé : mercredi 14 mai 2008 20:55 À : [email protected] Objet : Can I dynamically read the router attachments from a properties file or an xml? Can I dynamically read the router attachments from a properties file or an xml? Key:/xxx/xxx Value: XXXResource.class The problem I am facing is: 1. In the application class If I have a createRoot method the flow takes me there directly. Now if i abstract the router attach key and value in a properties file or an xml, the problem is I dont have a key to search my properties file. Its because I dont have handle to request in the createroot method and hence cant know the actual URL by doing request.getURL().So cannot pass the key to an external system which will send me back the resource class. 2. If I override handle method in Application class then my createRoot never gets called. Anyone with a solution?

