Re: Practicing the use of Context#createChildContext()

2008-10-14 Thread Thierry Boileau
Hello Mark, the sample codes on the web site have been updated since there is no need to actually specify the context when instantiating the application. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-found

Re: Practicing the use of Context#createChildContext()

2008-09-29 Thread Mark Petrovic
Our emails crossed in the mail... Got it. Thank you. Mark On Sep 29, 2008, at 12:13 PM, Rob Heittman wrote: To avoid the warning: change the example code: // Attach the sample application. component.getDefaultHost().attach( new FirstStepsApplication(component.ge

Re: Practicing the use of Context#createChildContext()

2008-09-29 Thread Mark Petrovic
Answering my own question, I *think* the log message means one should do this when setting up the standalone server: restletComponent = new Component(); restletComponent.getServers().add(Protocol.HTTP, 8182); Context context = restletComponent .getContext().createChildContext();

Re: Practicing the use of Context#createChildContext()

2008-09-29 Thread Rob Heittman
To avoid the warning: change the example code: // Attach the sample application. component.getDefaultHost().attach( new FirstStepsApplication(component.getContext())); To // Attach the sample application. component.getDefaultHost().attach(

Practicing the use of Context#createChildContext()

2008-09-29 Thread Mark Petrovic
Good day. I've been following the "first resource" example as I teach myself restlet 1.1 programming, in the context of using the simple standalone server: http://www.restlet.org/documentation/1.1/firstSteps However, doing so in the 1.1-RC2 release leads to what I assume are new deprecat