Re: [Cppcms-users] Fwd: cppcms::rpc::json_rpc_server usage.
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-05-21 12:51:43
|
> > >I would like explain my questions. For example I create my dynamic page > (like template or templates_inheritance in the example) with ajax using json_rpc inside: > 1. Will I do a derivation from cppcms::appliaction and make a json call inside or > 2. Will I do a derivation from cppcms::rpc::json_rpc_server for all application and children. See json_rcp_server is derived from cppcms::application, so everything you have in application you have in the RPC server. So if you use mostly AJAX and JSON-RPC API it makes sence to use json_rpc_server for your code >I'd like to know if the context is shared by url dispather and json_rpc_call or they have two different context? > No, but dispatching member functions would not work AFAIR as it dispatches function calls in main() that is overriden If you want more specific answers be more specific Artyom > |