Re: Can I dynamically read the router attachments from a properties file or an xml?

2008-05-14 Thread Stephan Koops
Hi Surjendu, you could call super.handle(request, response) in MyApplication.handle(..) best regards Stephan Surjendu schrieb: 2. If I override handle method in Application class then my createRoot never gets called.

Re: Can I dynamically read the router attachments from a properties file or an xml?

2008-05-14 Thread Surjendu
Thanks Stephan. Problem is I just found out that createRoot gets called before handle() and hence request.getResourceRef().toString() in createRoot is still null. If the flow is other way round then it would have solved the problem. Do u have any other way??

RE: Can I dynamically read the router attachments from a properties file or an xml?

2008-05-15 Thread Jerome Louvel
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.or