We need to display JBoss log files from within our web application. Is it possible to achieve this without using ServerConfigLocator ? The application must be able to run also with Websphere and we don’t want dependencies on specific JARs.
Share
JBoss’s defined log directory is held in the
jboss.server.log.dirsystem property. You can resolve that directory to ajava.io.File, and read the files inside.You can also get this through
ServerConfig.getServerLogDir()(on JBoss 4.x, anyway), but you said you wanted to avoid JAR dependencies.