Posted: Sun Apr 15, 2018 6:24 pm Post subject: Log4j looger initilialization
Novice
Joined: 13 Mar 2018 Posts: 14
Hi All,
I am trying to read log4j path in from UDP or property file. And then initialize the logger with this path in my Java compute node. Is there any way we can get this done only once for all threads in the message flow (similar to Shared variable behavior).
The path changes for each of the message flow. Thus, this needs to be done per message flow level (and not EG level).
Bad design.
The path can be set at initialization, but then it is once per class load.
You are looking at once per flow... This just ain't happening that way unless you keep state and reinitialize on each flow change... _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum