change standole.sh properties on runtime

21 views
Skip to first unread message

vaggelis spathas

unread,
Oct 16, 2023, 12:34:13 PM10/16/23
to WildFly
Hi,

i was looking on how we can have access in runtime in properties in several properties declared in standalone.xml or standole-full.xml ex.
username password of datasource or keystore-password in ManagementRealm and Application Realm.

Is there any way to have access on them on runtime?
I mean not only reading values but be able to change them.Example with some action in Singleton bean on startup of deployment of an application? 

Basically i'm trying to implement a solution for integrating jasypt for password encryption on files  in wildfly Having the passwords encrypted with jasypt in standalone-full.xml and when loading them on runtime decrypt them for usage only in memory.
It seems sth that can be done easily in other platforms like spring boot and i was trying to find a similar approach on wildfly.

Can anyone help on this?
Reply all
Reply to author
Forward
0 new messages