There is a line in the Active4D reference manual that I'm not sure
what is the correct method of implementation.
Uses for Direct Execution
Direct execution is useful in cases where you are not responding to an
HTTP request. In
fact, you could easily use Active4D as a general-purpose scripting
engine by executing
files or blocks of text that are nothing but Active4D code. You need
only enclose the
scripts in the <% %> tags.
We've tried this over the years with mixed results. Now that we're
upgrading I need to ask a couple questions.
We are currently and probably will continue to run Active4D on a
client. There are some things I created in Active4D that it sure would
be nice if we could call them from the 4D (GUI or process). While this
worked on our development server (probably because I had an expired
license on it) it did not work on the real server since Active4D is
not running on the server.
For instance, we created a cron process on the 4D server and tried to
execute some Active4D code stored in a record. That crashed the 4D
server - so we put that off to the side and said we'd get back to it
sometime. I think we figured out the licensing problem and was going
to use Execute on Client, but never got around to it.
I guess my questions are:
What is the best way to implement Active4D as a general-purpose
scripting engine (in client based web server environment)?
Should I buy two deployment licenses, one for the client web site and
one for the server?
Has anyone tried to execute Active4D text/file on a client from the
server?
I guess the option of two licenses would allow us to have a fallback
solution if the client died. Also would allow development of a limited
access site that I'm not sure what I'd do with - but then something
will come to mind sooner or later (long running reports, conversion
routines that are one heck of a lot easier to do in Active4D, etc.) Of
course that would require another 4D Web Server license. Which brings
up another question. Will Active4D work on a box that does not have a
web server running on it?
Steve Alex
AIDT
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/