Re: [Cppcms-users] non-greedy moint points
Brought to you by:
artyom-beilis
|
From: Petr J. <ele...@ex...> - 2013-07-14 23:15:30
|
Your mountpoints seem to be an issue because you are creating 2 separate
applications that have no common parent.
I explained to you that you need to rethink your application design so
that sub applications (your Index and your WebAPI) have a common parent.
Mounts in application_pool follow the same rule. you need to write your
regular expressions properly.
Theres no reason why something like this should not work:
MyMainApp constructor:
attach(new WebAPI(srv), "webapi", "/webapi{1}", "^/webapi(/(.*))?$", 1);
attach(new Index(srv), "index", "/index{1}", "^/(.*)?$", 1);
On 15/07/2013 8:58 AM, Marcel Hellwig wrote:
> On 15.07.2013 00:43, Petr Janda wrote:
>> Do you really need an asynchronous application?
> I WANT an rpc server in background ;)
>> Does WebAPI deviate from
>> the normal working scenario of request -> response ?
>>
>> I'm trying to understand your problem.
>>
> webAPI is a class, derived from cppcms::rpc::json_rpc_server, as
> mentioned before.
> There is no problem running both, sync and async apps, afaik, but my
> problem is the mount_point. In dispatching the order of "attach" is
> relevant, that means /webapi before / is legal and webapi will be
> called, mounts in appliation_pool does not follow this rule :/
>
>
>
> ------------------------------------------------------------------------------
> 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
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|