Paul Sandoz wrote:
> Paul Sandoz wrote:
>>> Done. But i am not familiarized with other containers rather than
>>> Servlet.
>>
>> OK, i will sort this out (as well as clearing up the APT code). I will
>> most likely not get around to doing this until Monday next week.
>>
>
> I created a new class HttpServerFactory and modified the HelloWorld Main
> class. Now we can create an HttpServer instance and start it in two just
> statements, like this:
>
> HttpServer server = HttpServerFactory.create(
> "http://localhost:9998/");
> server.start();
>
> without requiring any explicit configuration. Under the covers it uses
> the the following code:
>
> ContainerFactory.createContainer(HttpHandler.class);
>
> So the ASM stuff is working OK. Great! I will convert the other HTTP
> server examples.
>
Converted all of the examples and removed some cruft (the remaining
cruft can be removed when the new WADL generation stuff is in place).
Servlet initialization parameters corresponding to ResourceConfig
features are now propagated to the resource config instance by the
servlet (e.g. see the web.xml of the bookmark example).
>
> May i recommend that we change the name of ASMResourceConfig to
> something like DynamicResourceConfig (ASM is an implementation detail)
> and move it to the same package as ResourceConfig?
>
After we have discussed and acted on the above i think this branch can
be merged with the trunk.
Paul.
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109