Could anyone tell me the exact directory structure for sar.
The Directory structure for SAR is as follows.
sardirectory.sar sardirectory.sar/META-INF/ sardirectory.sar/META-INF/jboss-service.xml sardirectory.sar/<packagename> sardirectory.sar/<packagename>/<classfiles> sardirectory.sar/<dependent jar files>
More details can be found under,
Thanks a lot,
Could you please tell me where the log4j.xml can be put in my .sar.
And can we have all the jars in a saperate dir /Web-INF/lib? is this correct way of doing it?
log4j.xml exists in $JBOSS_HOME/server/default/conf .
As for the jars, if they are for the .war only, they go in there.
Thanks for the reply.
My application goes in this way.
We have centralized logging and also a localized logging. There is one log4j.xml at container level which will take care of centralized. Each application should have its own log4j.xml with level INFO writing to localized location. In order to direct the logs to centralized logging, we need to include that appender in the sar's log4j.xml. Is this way Correct?
And also, does Service archice has differnt way of logging? I mean, Is it recommended to use log4j.xml inside sar?