Re: Discuss how to set environment variables in Java11 and more...

2020-03-29 Thread Matt Sicker
ichele Sciabarra > > mich...@sciabarra.com > > > > - Original message ----- > > From: Matt Sicker > > To: dev@openwhisk.apache.org > > Subject: Re: Discuss how to set environment variables in Java11 and > more... > > Date: Saturday, March 28, 2020

Re: Discuss how to set environment variables in Java11 and more...

2020-03-29 Thread Carlos Santana
ibly inefficient even for fast C programs. And for > java, that also has a long startup time, would be terrible. > > -- > Michele Sciabarra > mich...@sciabarra.com > > - Original message ----- > From: Matt Sicker > To: dev@openwhisk.apache.org > Subject: Re:

Re: Discuss how to set environment variables in Java11 and more...

2020-03-29 Thread Michele Sciabarra
age - From: Matt Sicker To: dev@openwhisk.apache.org Subject: Re: Discuss how to set environment variables in Java11 and more... Date: Saturday, March 28, 2020 5:36 PM I think Java broke up environment variables and system properties to allow for a more fine grained permission model of who is

Re: Discuss how to set environment variables in Java11 and more...

2020-03-29 Thread Michele Sciabarra
apache.org Subject: Re: Discuss how to set environment variables in Java11 and more... Date: Saturday, March 28, 2020 3:31 PM We should not change this for java8. For Java 11 since it’s new, it would be ok to make the change but only for the activation context. Since init time env vars can still be

Re: Discuss how to set environment variables in Java11 and more...

2020-03-28 Thread Matt Sicker
I think Java broke up environment variables and system properties to allow for a more fine grained permission model of who is allowed to edit them and read them, hence the overly locked down API for it. Would it be feasible to launch a sub process with the environment variables initialized? Or wou

Re: Discuss how to set environment variables in Java11 and more...

2020-03-28 Thread Rodric Rabbah
We should not change this for java8. For Java 11 since it’s new, it would be ok to make the change but only for the activation context. Since init time env vars can still be set by the proxy. Another approach since something will change for 11: introduce the context object for java methods tha

Re: Discuss how to set environment variables in Java11 and more...

2020-03-28 Thread Carlos Santana
Would this be for a new kind “java:11” not affecting existing java kinds? Then will affect only someone migrating a java action from using java:8 or java:8a to use java:11? then it would be a good time to also clean up how it access this variables/properties if for any chance is using them in ex

Discuss how to set environment variables in Java11 and more...

2020-03-28 Thread Michele Sciabarra
Community, Let's make a long story short: In the openwhisk runtime for java, when you activate an action, you have to pass some informatins. Most notably those: --- { "namespace": String, "action_name": String, "api_host": String, "api_key": String, "activation_id": String, "transac