Custom Variables passed to lucee-server.xml?

Is it possible to pass custom variables to the lucee-server.xml? Maybe via
init-params on the Tomcat web.xml? Or is there some way I can reference
environment variables I have setup for the Tomcat service within the
lucee-server.xml?

You can get at environment variables in lucee 5 check out the lucee heroku
build pack for an example and we are working on an enhancement to allow you
to reference env variables in your lucee config xml

Cheers

AlexOn Wednesday, 5 August 2015, Scott Smith <@Scott_Smith> wrote:

Is it possible to pass custom variables to the lucee-server.xml? Maybe via
init-params on the Tomcat web.xml? Or is there some way I can reference
environment variables I have setup for the Tomcat service within the
lucee-server.xml?


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Alex Skinner
Managing Director

Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk

Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn http://www.linkedin.com/pixl8

CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended
solely for the addressee, is strictly confidential and may also be subject
to legal, professional or other privilege or may be protected by work
product immunity or other legal rules. If you are not the addressee please
do not read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB

Bummer. So this is not possible prior to version 5? As it stands I am
setting up an entirely new setup/configuration for our production servers
as we move from Railo to Lucee, so I think it would be a tough sell for our
first stab to be running on a beta release. We have a bunch of “shared”
functionality that resides in a framework directory that sites next to many
of our applications in the web root. Also, many of our applications are
nested within subdirectories. I am trying to eliminate the need to have a
different lucee-server configuration in our production/stage/dev
environments solely because we don’t have the same drive letter or store
our code in the same directory. I have an environment variable setup for my
Tomcat windows service that has this path defined, but I unfortunately only
seem to be able to reference it in my Tomcat configs. If anyone has any
workaround they can think to achieve this on the stable version of Lucee or
an alternative approach (other than using the Administrator web interface
or maintaining multiple configs), please let me know. I will keep digging
for some mechanism on my end.

Thanks.On Wed, Aug 5, 2015 at 10:55 AM, Alex Skinner <@Alex_Skinner> wrote:

You can get at environment variables in lucee 5 check out the lucee heroku
build pack for an example and we are working on an enhancement to allow you
to reference env variables in your lucee config xml

Cheers

Alex

On Wednesday, 5 August 2015, Scott Smith <@Scott_Smith> wrote:

Is it possible to pass custom variables to the lucee-server.xml? Maybe
via init-params on the Tomcat web.xml? Or is there some way I can reference
environment variables I have setup for the Tomcat service within the
lucee-server.xml?


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Alex Skinner
Managing Director

Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk

Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn http://www.linkedin.com/pixl8

CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended
solely for the addressee, is strictly confidential and may also be subject
to legal, professional or other privilege or may be protected by work
product immunity or other legal rules. If you are not the addressee please
do not read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

You should still be able to get the environment variables in versions prior
to 5, they are available to Java in the java.lang.System class via the
getenv() method. I think he was saying the ability to reference them from
lucee config files was only going to be in 5.

See:
https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#getenv--

So while you may not be able to reference them in the config files you
should still be able to configure the server at runtime using them.–
Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Wed, Aug 5, 2015 at 12:28 PM, Scott Smith <@Scott_Smith> wrote:

Bummer. So this is not possible prior to version 5? As it stands I am
setting up an entirely new setup/configuration for our production servers
as we move from Railo to Lucee, so I think it would be a tough sell for our
first stab to be running on a beta release. We have a bunch of “shared”
functionality that resides in a framework directory that sites next to many
of our applications in the web root. Also, many of our applications are
nested within subdirectories. I am trying to eliminate the need to have a
different lucee-server configuration in our production/stage/dev
environments solely because we don’t have the same drive letter or store
our code in the same directory. I have an environment variable setup for my
Tomcat windows service that has this path defined, but I unfortunately only
seem to be able to reference it in my Tomcat configs. If anyone has any
workaround they can think to achieve this on the stable version of Lucee or
an alternative approach (other than using the Administrator web interface
or maintaining multiple configs), please let me know. I will keep digging
for some mechanism on my end.

Thanks.

On Wed, Aug 5, 2015 at 10:55 AM, Alex Skinner <@Alex_Skinner> wrote:

You can get at environment variables in lucee 5 check out the lucee
heroku build pack for an example and we are working on an enhancement to
allow you to reference env variables in your lucee config xml

Cheers

Alex

On Wednesday, 5 August 2015, Scott Smith <@Scott_Smith> wrote:

Is it possible to pass custom variables to the lucee-server.xml? Maybe
via init-params on the Tomcat web.xml? Or is there some way I can reference
environment variables I have setup for the Tomcat service within the
lucee-server.xml?


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get
your ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Alex Skinner
Managing Director

Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk

Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn http://www.linkedin.com/pixl8

CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended
solely for the addressee, is strictly confidential and may also be subject
to legal, professional or other privilege or may be protected by work
product immunity or other legal rules. If you are not the addressee please
do not read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CADhKUgFCXy9FzKxheSRm9gDGBQPtWwC1HGU-2bNkt1S9KiFqGw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFCXy9FzKxheSRm9gDGBQPtWwC1HGU-2bNkt1S9KiFqGw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Yeah I did figure out how to get at them from within the application, but I
then realized we rely on a mapping for our applications to extend some
“base” components like a base application and some others, so by the time I
can access this variable in the app, it is too late. I’d have to have that
mapping configured in the XML. So far I take it that if I am not moving to
5, I will have no choice but to manage at least the one mapping with a
different setting in every environment.On Wed, Aug 5, 2015 at 11:42 AM, Pete Freitag <@Pete_Freitag> wrote:

You should still be able to get the environment variables in versions
prior to 5, they are available to Java in the java.lang.System class via
the getenv() method. I think he was saying the ability to reference them
from lucee config files was only going to be in 5.

See:
System (Java Platform SE 8 )

So while you may not be able to reference them in the config files you
should still be able to configure the server at runtime using them.


Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Wed, Aug 5, 2015 at 12:28 PM, Scott Smith <@Scott_Smith> wrote:

Bummer. So this is not possible prior to version 5? As it stands I am
setting up an entirely new setup/configuration for our production servers
as we move from Railo to Lucee, so I think it would be a tough sell for our
first stab to be running on a beta release. We have a bunch of “shared”
functionality that resides in a framework directory that sites next to many
of our applications in the web root. Also, many of our applications are
nested within subdirectories. I am trying to eliminate the need to have a
different lucee-server configuration in our production/stage/dev
environments solely because we don’t have the same drive letter or store
our code in the same directory. I have an environment variable setup for my
Tomcat windows service that has this path defined, but I unfortunately only
seem to be able to reference it in my Tomcat configs. If anyone has any
workaround they can think to achieve this on the stable version of Lucee or
an alternative approach (other than using the Administrator web interface
or maintaining multiple configs), please let me know. I will keep digging
for some mechanism on my end.

Thanks.

On Wed, Aug 5, 2015 at 10:55 AM, Alex Skinner <@Alex_Skinner> wrote:

You can get at environment variables in lucee 5 check out the lucee
heroku build pack for an example and we are working on an enhancement to
allow you to reference env variables in your lucee config xml

Cheers

Alex

On Wednesday, 5 August 2015, Scott Smith <@Scott_Smith> wrote:

Is it possible to pass custom variables to the lucee-server.xml? Maybe
via init-params on the Tomcat web.xml? Or is there some way I can reference
environment variables I have setup for the Tomcat service within the
lucee-server.xml?


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get
your ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFUg8Ooqg16iiOeQ-9N%2B8bk%3D3fGK_pnjqz808sJ52w_pw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Alex Skinner
Managing Director

Pixl8 Interactive, 3 Tun Yard, Peardon Street, London
SW8 3HT, United Kingdom

T: +44 [0] 845 260 0726• W: www.pixl8.co.uk• E: info@pixl8.co.uk

Follow us on: Facebook http://www.facebook.com/pixl8 Twitter
http://www.twitter.com/pixl8 LinkedIn http://www.linkedin.com/pixl8

CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended
solely for the addressee, is strictly confidential and may also be subject
to legal, professional or other privilege or may be protected by work
product immunity or other legal rules. If you are not the addressee please
do not read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get
your ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAFrbJ5Ug-5gMbX_FG7FneYJeEj4FF5u5YiA3tL%2B-1S1dvfAHhA%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CADhKUgFCXy9FzKxheSRm9gDGBQPtWwC1HGU-2bNkt1S9KiFqGw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CADhKUgFCXy9FzKxheSRm9gDGBQPtWwC1HGU-2bNkt1S9KiFqGw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAADZ8V6PdsF3TWSNNxyFNAxB98zHSb6TPoOC%3Dt%2BL0b5jzFZxzw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAADZ8V6PdsF3TWSNNxyFNAxB98zHSb6TPoOC%3Dt%2BL0b5jzFZxzw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.