Discussions

General J2EE: Initialize log4j in app tier

  1. Initialize log4j in app tier (1 messages)

    My application runs on clustered environment. I have multiple app servers and web servers each running on different jdks. Initializing log4j in web tier I can perform with servlet at server startup but in no app tier I donot want war module so I will have only jar files ejb's, in this case when and where is the best palce to initialize log4j. Thanks & Regards Miro
  2. I think the best option if you are not sure is the default initialiser. Try to specify path to your log4j config file as log4j.configuration system property in app server startup command.