View Full Version : Pre compile laslzo
gbalajikumar
10-14-2004, 08:22 PM
Is there any way to precompile my laslzo file into swf and put those swf in my webserver, so that i no need to delpoy LPS in my production environment. In my production environment screen wont change frequently only data i neeed to fetch from my APP server. Is it possible to create swf in my local machine and upload in my webserver?
If so, can u please tell the steps to do this?
MonsterJoe
10-14-2004, 10:25 PM
Hi,
I've been thinking the same and here is what David Temkin (Founder, Vice President of Engineering and CTO) (www.davidtemkin.com) has to say about this:
With Laszlo's new business model built on top of an open-source platform, we are now in a position to make the presentation server an optional component of a Laszlo deployment. Sometime over the next few months, we'll release a build that allows you to compile LZX files on a developer's machine, and post the resulting SWF to a Web server. The SWF in the browser will communicate with XML and media sources directly, with no intervening presentation (proxy) server. For many Laszlo applications, this will mean no need to install Java on the server, no need to deal with new servlets or test presentation server scalability.
If you've developed using Laszlo, you've seen that the server is invoked during the edit-compile-debug cycle. That means that the server is here to stay -- as a developer tool. But it won't need to be installed on a deployment server unless you require certain specific runtime features. That's a big deal if you have complex/high-scale infrastructure to manage, if you don't want to run Java application servers, or if you have a simple site and are not in a position to install server software.
bloch
10-24-2004, 08:56 PM
Actually, in 2.2, you can ship the WEB-INF/lps/work directory as a pre-cache. That's what we do with the dev kit that comes with the demos, etc... precompiled.
YOu may want the compmgrDependencyOption set to never as well. See the deployer's guide chapter in the lzx reference.
-Eric
kipsta
11-19-2004, 05:20 AM
So we would just reference the .swf instead of the .lzx file passing in the ?lzt=swf param?
gpierce
11-21-2004, 07:43 AM
I'm interested in this response as well because the laszlo server would really just add some more overhead to my architecture. I like the Laszlo stuff, but don't want to deal with the compilation time any more than I do jsp compilation time.
bloch
11-21-2004, 09:55 AM
In 2.2, you can effectively precompile.
As a developer you
1) clean your server caches (?lzt=clearcache)
2) trigger your app to compile (wget or browser)
3) stop the server
4) edit WEB-INF/lps/config for deployment,
setting the compMgrDependencyOption to never
5) build a deploy a war
In 3.0, you can serve up the SWF alone if you don't need runtime LPS "server" features.
-Eric
gpierce
11-21-2004, 10:31 AM
Originally posted by bloch
In 2.2, you can effectively precompile.
As a developer you
1) clean your server caches (?lzt=clearcache)
2) trigger your app to compile (wget or browser)
3) stop the server
4) edit WEB-INF/lps/config for deployment,
setting the compMgrDependencyOption to never
5) build a deploy a war
In 3.0, you can serve up the SWF alone if you don't need runtime LPS "server" features.
-Eric
Well basically I just want to have my SWFs post to URLs and get XML back that they will use for display. I'm not (at the moment) using any particular server features because what I'm really doing is build a rich UI for an admin console for a web application. As such I really want to just generate a UI using the much cleaner Lazlo infrastructure.
For some reason I wasn't able to get 3.0a to work on OSX whereas 2.2.1 worked just fine.
JApostoles
11-24-2004, 09:15 AM
Does the current 3.0a release allow you to generate a standalone .SWF that can run without the LPS?
tocproducers
11-27-2004, 07:33 AM
Originally posted by bloch
In 3.0, you can serve up the SWF alone if you don't need runtime LPS "server" features.
How do you do this?
JApostoles
11-29-2004, 06:49 AM
I think we have to wait for at least 3.0 beta 2 in order to use this functionality.
Anyone have any idea on an estimated arrival date of beta 2?
AnotherHero
07-01-2005, 05:02 AM
Is this already possible yet? Because I cant find an explenation how to precompile lzx files to swf. :$
SOLO deployment (http://www.openlaszlo.org/tips/2005/solo)
AnotherHero
07-01-2005, 05:25 AM
Thank you, i probably wasnt looking further then my nose is long. As dutch people say that :P Thanks very much!!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.