Re: [Cppcms-users] mapping across mount_points
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-07-15 11:09:17
|
I mean attach only small class that does mapping only (no dispatching). There is attach function that does only mapping for example. http://cppcms.com/cppcms_ref/1.0.0/classcppcms_1_1application.html#ab31985c608cfb176bbbf0958f438fbf7 So also it would be "mounted synchronously" it is just some base class for sharing the mapping, not actual dispatching. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: Marcel Hellwig <ke...@co...> > To: cpp...@li... > Cc: > Sent: Monday, July 15, 2013 1:36 PM > Subject: Re: [Cppcms-users] mapping across mount_points > > On 15.07.2013 12:26, Artyom Beilis wrote: >> Unfortunately not. >> >> Technically asynchronous applications can be unmounted during their life > time so mapping can be invalid. >> or new applications can be mounted. > I know, a very usefull technique btw.. >> What you can do it to do something like that. >> >> class dummy_async_mapping : public cppcms::application { >> dummy_async_mapping(...) >> { >> // all mapping (not dispatching) goes there >> } >> } >> >> class async_app : public dummy_async_mapping ... >> >> class sync_app : public cppcms::application { >> sync_app(...) >> { >> attach("/webapi/" , new dummy_async_mapping() >> ... >> } >> } >> >> Such that they both would get the mapping you need. > So, this will work? When I attach an async app in a sync context? The > last time I tried it like Petr suggested, it was mounted as sync. >> >> >> Artyom Beilis >> -------------- >> CppCMS - C++ Web Framework: http://cppcms.com/ >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |