Hello Liem, you can set it as follow : server.setContext(new Context()); Generally, such connector is used inside a Component, which automatically adjust the connector's context.
Best regards, Thierry Boileau My server stops serving after some connections and I would like to increase > the number of threads. > > > try > { > Server server = new Server(Protocol.HTTP, m_iPort, > ContentProvider.class); > server.start(); > } > catch (Exception e) > { > e.printStackTrace(); > } > > This line below would return a null Context object > getContext().getParameters().add("maxThreads", "512"); > > Does anyone have an example or solution? > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2922840 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2922916