View Full Version : Pre-compiling for proxied deployment
PleaseKING
09-08-2005, 04:46 AM
Already tried to post this question in 'Tools, Development and Practices' forum but never got a reply, trying here now..
I am going to distribute my application, and don't want my users to wait while it compiles. However, I'm pretty ok with OpenLaszlo server running for (I am making a heavy use of SOAP and related things). Is there any way to pre-compile the application but then deploy it in proxied mode? SOLO deployment is of almost no interest for me.
antun
09-08-2005, 04:23 PM
Your application should only have to compile once, the first time it is accessed. After that, it will be cached on the server.
However, every time you start the server, and request a Laszlo app for the first time, that first request will be slow - you may be confusing this for recompilation. There's no way to avoid this behavior.
Take care,
Antun
PleaseKING
09-08-2005, 09:29 PM
Thanks a lot for your reply, I think it's be a nice feature in the future to have an option to compile everything into .swf and thus
1) speed up the application
2) avoid shipping the sources if one wants to keep them closed
I have not tested this yet ..
but if you want the best of both worlds .. SOLO compiled *.swf + SOAP .. then you might achieve this by amending your lzx app to call PHP5 for the SOAP / XML-RPC connection (SOAP is not available in SOLO).
Thus, you have a (SOLO) laszlo front end + PHP5 SOAP connection to your web services.
This way, there is no need to release lzx source.
I will get round to testing this one day.
It is a good reason for using phpservlet.jar to access local PHP5 scripts, since the compiled SOLO laszlo swf can be dropped into an Apache+PHP5 server, the tomcat tested laszlo app then calling PHP5 scripts on Apache.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.