Hi, I am trying to wrap a custom Restlet application in a Servlet to facilitate its deployment in a WAR file. The application needs to be initialized with some parameters using the standard web.xml file. My understanding is that it is possible to do it in 2 ways: Subclassing ServletServer or writing a Servlet using ServletConverter class. I decided to use the second approach because it seems cleaner to me.
I tried to initialize the Application with the context of the ServletConverter but it seems that application does not work properly to serve files from directory. What type of context needs to be created in this case. Do I need to create a component for this Servlet ? The usage of Context is pretty confusing in Restlet. Inheritance of attributes from parent context are not automatic. Passing context in constructor of Restlet does not behave the same way than calling setContext() afterwards. Can anyone provide some guideline to make this wrapping successful and provide some snippet of code to illustrate the wrapping of an Application. Thank you in advance Stephane Fellah Image Matters LLC

