Hope that is helpful.
Hi all,
The latest version of Lucee 5.0.1.024 contains a first implementation of
web.cfc and server.cfc. There are a few things that need to be said here:
-
It’s a hidden feature yet (well not really anymore J)
-
The server.cfc is loaded BEFORE all web contexts are loaded.
This means that there will no application or so be available. Only to fill
the server scope for instance or create files etc.
-
The web.cfc is called for each web context, when it starts. It
contains ONE method which will be onWebStart() so the cfc will look like
this:
component {
public function onWebStart() {
doSomething…
}
}
HTH
Sincerely
Gert Franz
RASIA GmbH
Spittelgasse 7
5103 Moeriken-Wildegg
Switzerland
Email: @Gert_Franz <javascript:_e(%7B%7D,‘cvml’,‘@Gert_Franz’);>
Skype: gert.franz
Phone Switzerland: +41 76 5680 231
Von: andrew@andrewdixon.co.uk
<javascript:_e(%7B%7D,‘cvml’,‘andrew@andrewdixon.co.uk’);> [mailto:
andrew@andrewdixon.co.uk
<javascript:_e(%7B%7D,‘cvml’,‘andrew@andrewdixon.co.uk’);>] *Im Auftrag
von *Andrew Dixon
Gesendet: Donnerstag, 14. Juli 2016 22:34
An: lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>
Betreff: Re: [Lucee] server.cfc
I’ll ask Micha.
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org
On 14 July 2016 at 21:16, Nando Breiter <@Nando_Breiter <javascript:_e(%7B%7D,‘cvml’,‘@Nando_Breiter’);>> wrote:
Here’s my test Application.cfc, dropped into a subdirectory under the
webroot
component {
this.name = “rename”;
public void function onApplicationStart() {
systemOutput(‘onApplicationStart() called!’, true);
}
public void function onRequestStart() {
systemOutput(‘onRequestStart() called!’, true);
}
public void function onServerStart() {
systemOutput(‘onServerStart() called!’, true);
}
public void function onServerEnd() {
systemOutput(‘onServerEnd() called!’, true);
}
}
I’m seeing onApplicationStart() called! and onRequestStart() called!
testing on Lucee 5, but no sign at all of the the server start and stop log
entries in catalina.out.
Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamedia
On Thu, Jul 14, 2016 at 8:51 PM, Andrew Dixon <@Andrew_Dixon <javascript:_e(%7B%7D,‘cvml’,‘@Andrew_Dixon’);>> wrote:
Like I said, I’ve never used it but it is listed in the Javadoc’s for
Lucee:
ApplicationListener
and it says:
onServerStart()
this method will be called when a server starts
There is also onServerEnd:
onServerEnd()
this method will be called when the server shutdown correctly (no crashes)
I guess the only way to find out what it does is try it!!!
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org
On 14 July 2016 at 19:42, ADK <@ADK <javascript:_e(%7B%7D,‘cvml’,‘@ADK’);>> wrote:
but Application.cfc isn’t hit “on server start” so how would that work?
On Thursday, July 14, 2016 at 6:08:48 AM UTC-7, Andrew Dixon wrote:
Never used it, but given the name I would assume it is on server start
up, otherwise it is no different to onApplicationStart.
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org
On 14 July 2016 at 14:05, AJ Mercer <ajme...@gmail.com <javascript:_e(%7B%7D,‘cvml’,‘ajme…@gmail.com’);>> wrote:
does they fire wen Lucee starts up
or the first time the application is loaded?
I am something that fires when Luce Starts
On 14 July 2016 at 21:01, Andrew Dixon <andrew...@gmail.com <javascript:_e(%7B%7D,‘cvml’,‘andrew…@gmail.com’);>> wrote:
I don’t think so, what about using the OnServerStart in the
Application.cfc?
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org
On 14 July 2016 at 13:45, AJ Mercer <ajme...@gmail.com <javascript:_e(%7B%7D,‘cvml’,‘ajme…@gmail.com’);>> wrote:
Did server.cfc get implemented in Lucee?
Ff so, please point me to doco.
If not, how do people populate SERVER scope before applications start up?
–
AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bun…@googlegroups.com’);>.
To post to this group, send email to lu...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lu…@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAPURtC0234Jmp_ScC2HNpZ-8N72f1RPBMit15tJ6Fbkm%2BZk7gg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAPURtC0234Jmp_ScC2HNpZ-8N72f1RPBMit15tJ6Fbkm%2BZk7gg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bun…@googlegroups.com’);>.
To post to this group, send email to lu...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lu…@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijUfvn6-WnHe_UQnAJStaQuqhXg4sAT68qeeuMKQGoLCsg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijUfvn6-WnHe_UQnAJStaQuqhXg4sAT68qeeuMKQGoLCsg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bun…@googlegroups.com’);>.
To post to this group, send email to lu...@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lu…@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAPURtC128%3Drdk-c8W6P5nKLEjW5LFvRsp3xfmtLxeCVM9_f7tg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAPURtC128%3Drdk-c8W6P5nKLEjW5LFvRsp3xfmtLxeCVM9_f7tg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/38ca627d-5c2f-4749-8c37-816ea6621f9a%40googlegroups.com
https://groups.google.com/d/msgid/lucee/38ca627d-5c2f-4749-8c37-816ea6621f9a%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijVUamS-Z_-B%2BuXJyBuu_UzB09mze-aGe9SvWJK1c5msbw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijVUamS-Z_-B%2BuXJyBuu_UzB09mze-aGe9SvWJK1c5msbw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-Z6%2BbtTwM4u5UapA%2BLcR5ziqWc4b6-SX-g7Phfr%2B%3D5yQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-Z6%2BbtTwM4u5UapA%2BLcR5ziqWc4b6-SX-g7Phfr%2B%3D5yQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijUtoCobWT6dWKeYVnZHRsz9Rp%2BKjcTX2o%3Ddo6MxJkSDUQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijUtoCobWT6dWKeYVnZHRsz9Rp%2BKjcTX2o%3Ddo6MxJkSDUQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there…
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee%2Bunsubscribe@googlegroups.com’);>.
To post to this group, send email to lucee@googlegroups.com
<javascript:_e(%7B%7D,‘cvml’,‘lucee@googlegroups.com’);>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/005701d1de1b%24397e3230%24ac7a9690%24%40rasia.ch
https://groups.google.com/d/msgid/lucee/005701d1de1b%24397e3230%24ac7a9690%24%40rasia.ch?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.