Hello,
Yes it is Ok, I don't see any specific problems with this.
Mount point gives you large flexibility, this it was
designed for - mount multiple applications
Note: please register to this mailing list so I would
not have to approve your messages and you will receive
replays.
Artyom Beilis
-------------
Support CppCMS by donating money:
https://sourceforge.net/donate/index.php?group_id=20996
>________________________________
> From: Joffrey Romero <jof...@ya...>
>To: cpp...@li...
>Sent: Thursday, February 23, 2012 8:33 AM
>Subject: [Cppcms-users] Question about multiples mount_point
>
>
>Hello,
>
>I'm working on a cppcms project with asynchronous classes :
>
>Is that the right way to create my asynchronous modules ?
>
><code>
>int main(int argc, char **argv, char **env)
>{
> try {
> cppcms::service srv(argc,argv);
>
> booster::intrusive_ptr<ad_connection> c
> = new ad_connection(srv);
> srv.applications_pool().mount(
> c, cppcms::mount_point("/ad_connection/(.*)",1) );
>
> srv.applications_pool().mount(
> cppcms::applications_factory<program>(),
> cppcms::mount_point("^/((?:(?!ad_connection/).)*)",1) );
>
> srv.run();
> }
> catch(std::exception const &e) {
> std::cerr<<e.what()<<std::endl;
> }
>}
></code>
>
>The code works well, but just for curiosity, I wondered if it was
the right way..
>
>Thanks,
>
>Joffrey
>
>
>------------------------------------------------------------------------------
>Virtualization & Cloud Management Using Capacity Planning
>Cloud computing makes use of virtualization - but cloud computing
>also focuses on allowing computing to be delivered as a service.
>http://www.accelacomm.com/jaw/sfnl/114/51521223/
>_______________________________________________
>Cppcms-users mailing list
>Cpp...@li...
>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
|