Home Projects Jobs Clientele Contact


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ServletConfig in CXXSP

OK. I've made few changes to API, related to this (and few other things),
especially removing many "const" declarations. I'll get a patch to you
(or you can just grab latest CPPSERV git tree, and do diff between our
API headers directories).

Krzysztof Rzymkowski wrote:
> Ilya A. Volynets-Evenbakh wrote:
>> Chris,
>> If I understand correctly, the function responsible for initializing
>> a servlet in CXXSP is
>>     HttpServlet* loader::create_servlet(dso_code* code) {
>> //         cout << "loader::create_servlet" << endl;
>>         auto_ptr<HttpServlet> servlet( code->call<HttpServlet*>("create") );
>>         if (!servlet.get())
>>                 throw runtime_error("Error loading servlet module.
>> Servlet creation function returned NULL. ");
>>         servlet->init();
>>         return servlet.release();
>>     }
>> I see that it calls non-parametrized init() method directly, and
>> does not create/pass ServletConfig object in any way. Am I missing
>> something important here?
> You're not missing anything. I haven't implemented ServletConfig yet

Ilya A. Volynets-Evenbakh
Total Knowledge. CTO

Authoright © Total Knowledge: 2001-2008