Hello all,

web 2.0 greenhorne here ;)

I'm currently frantically searching for a way to decouple individual web
apps (usually *.wt) from my large C++ application, to achieve a
sufficiently fast development cycle (simply accessing the app URL
to visit the newly-built session) instead of having to reload my entire app
upon every web app modification.
Current design is a runtime-loaded (i.e., external) wt server library
that my program then loads if available (and which then launches wthttp
in a pthread), thus I _could_ use an external FastCGI solution
in order to simply relaunch the Wt server part instead of my entire app,
but this would then require a fifo or socket channel for transfers
from the app, instead of a direct API protocol. Right!?

Thus I thought: since the Wt homepage can invoke external .wt apps (in the
examples/ section, e.g. hello.wt), I should get the same thing going.
This means that my initial server startup doesn't need any entry points
configured (addEntryPoint()), but when browsing to that .wt app path,
the new app should get executed.
Instead, what I get is a nice "BIN file" download of the .wt file,
both with Firefox and links (also when trying the "immediate redirect()" trick
within createApplication()).
I guess that this is due to comments in src/Wt/WServer (and elsewhere)
that the standalone wthttp is single-instance currently,
thus it probably cannot re-spawn a new app and instead offers a download.
My own *.wt app itself does serve pages, in the usual way (--docroot
etc.), thus it is properly executable.
Since webtoolkit.eu is said to be Apache-based, I assume it is no
problem there due to using FastCGI.

Using Wt 3.1.0, Boost 1.40.0, RHEL5 (currently......),
all related projects cmake-based.

Strongly contemplating going to git trunk if that improves it
(in case single-instance issued fixed or so)

So far I have to say Wt is absolutely incredible,
extremely convincing code quality and awesome layering concept.
>From my Free Software Fascist (tm) POV, the license (dual licensing)
is perfect too: Proprietary whimps pay dearly (and get good support services,
hopefully), whereas GPL projects get everything for free (with less stringent
support obviously ;).

Thanks,

Andreas Mohr

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to