ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportLog4j looger initilialization

Post new topicReply to topic
Log4j looger initilialization View previous topic :: View next topic
Author Message
Learning_MQ_IIB
PostPosted: Sun Apr 15, 2018 6:24 pm Post subject: Log4j looger initilialization Reply with quote

Novice

Joined: 13 Mar 2018
Posts: 12

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).

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Apr 16, 2018 7:30 pm Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19744
Location: LI,NY

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportLog4j looger initilialization
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.