Hello Ted,
> The way I understand the architecture is that you only need to create a > Component and have a main() is if you are going to run stand alone. > Is this correct? Yes, you're right. There is no need of main() when running in servlet container. However, if you find such methods in code intended to be run inside servlet container, it's only in the purpose of tests. best regards, Thierry Boileau On Thu, Feb 28, 2008 at 5:05 PM, TA <[EMAIL PROTECTED]> wrote: > New to Restlets and have a question. > > Apologies if it's come up before, I couldn't find it in the archives > > Do I need to create a Component instance and attach the Application > to it if I'm going to run Restlests inside a Servlet container? > > I looked at the example com.testServlet.TestServletApplication and > it wasn't clear to me why there is a main() in there and why a > Component is created. The First Steps example didn't have any of that. > > The way I understand the architecture is that you only need to create a > Component and have a main() is if you are going to run stand alone. > Is this correct? > > Thanks for any assistance and would appreciate any guidance or places > to look in the archives about best practices for running inside a > Servlet container. > > Ted > > > > > >

