File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Externalizing in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Externalizing in JBoss" Watch "Externalizing in JBoss" New topic

Externalizing in JBoss

Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 98
Hi all,
I am using slf4j for logging in my application which is deployed in JBOSS.
Now i want to externalize the means i want to pull it out side of myapp.war.
So i have created a jar with log4j.propeties along with my application specific properties file and placed the jar in %JBOSS_HOME%/server/default/lib.
I am able to read the remaining configuration file in my application, but the JBOSS not considering the in this jar.
Is there any mistake in my approach?
I want the should be outside of myapp.war.Thats my goal...

Thanks and Regards,
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Logging in JBoss AS is governed by the server/xxx/conf/jboss-log4j.xml file. Usually, you should add your logging settings there.

For per-app log settings, see this:

JBoss In Action
I agree. Here's the link:
subject: Externalizing in JBoss
It's not a secret anymore!