-
1. Re: Loading system properties early in the boot process
nickarls Jul 25, 2013 2:56 AM (in response to jprio)Can you use script that uses wget + some parsing to populate the system environment before the AS startup script is called?
-
2. Re: Loading system properties early in the boot process
jprio Jul 25, 2013 4:55 AM (in response to nickarls)Thank you for your answer. However, with a script, I can't reload those properties whenever they change. I thought rather to some kind of subsystem I can reload during runtime. I tried to read "https://docs.jboss.org/author/display/AS72/Extending+JBoss+AS+7", but it is not clear to me where I have to implement my call (initialize method of my extension, populateModel or performBoottime of my AbstractBoottimeAddStepHandler, ... ?).
-
3. Re: Loading system properties early in the boot process
nickarls Jul 25, 2013 5:50 AM (in response to jprio)I meant that the script would be called every time as a part of booting the AS (before standalone.sh)
-
4. Re: Loading system properties early in the boot process
ctomc Jul 25, 2013 7:52 AM (in response to jprio)Jean-Pierre RIO wrote:
Thank you for your answer. However, with a script, I can't reload those properties whenever they change. I thought rather to some kind of subsystem I can reload during runtime. I tried to read "https://docs.jboss.org/author/display/AS72/Extending+JBoss+AS+7", but it is not clear to me where I have to implement my call (initialize method of my extension, populateModel or performBoottime of my AbstractBoottimeAddStepHandler, ... ?).
in AbstractBoottimeAddStepHandler#performBoottime
-
5. Re: Loading system properties early in the boot process
sfcoy Jul 25, 2013 8:20 AM (in response to jprio)Jean-Pierre RIO wrote:
... However, with a script, I can't reload those properties whenever they change. I thought rather to some kind of subsystem I can reload during runtime. ...
I think this is a tall order. You will have to restart so many subsystems that you may as well just restart the whole server (with a script?).
-
6. Re: Loading system properties early in the boot process
nickarls Jul 25, 2013 8:27 AM (in response to jprio)Even if the parameters change, they should remain constant during the start-to-stop-lifecycle of the AS right?
-
7. Re: Loading system properties early in the boot process
ctomc Jul 25, 2013 8:34 AM (in response to nickarls)Nicklas Karlsson wrote:
Even if the parameters change, they should remain constant during the start-to-stop-lifecycle of the AS right?
yes.
any property that gets set during boot time / model phase will be properly resolved and used.
resolving and using of property occurs later on in "runtime phase"
-
8. Re: Loading system properties early in the boot process
jprio Jul 25, 2013 10:18 AM (in response to ctomc)AbstractBoottimeAddStepHandler#performBoottime seem's ok. We will have to manage now how to reload a ds to reflect the new configuration.
Thanks for your help.
-
9. Re: Loading system properties early in the boot process
nickarls Jul 25, 2013 3:07 PM (in response to jprio)Sounds a bit dangerous with someone fiddling with the configuration server and suddenly the test-datasources point to production
-
10. Re: Loading system properties early in the boot process
sgfitzs Aug 14, 2013 10:02 AM (in response to jprio)Try adding the system propery in domain.conf.bat. Worked for me.