Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JBoss and log4j

Thread Tools

JBoss and log4j

tony vee
Posts: n/a

I am trying to configure JBoss so that an enterprise application I have
written is able to use a separate log4j configuration file from the main
server. Currently, both the server and application use the same log4j config
file. Since the Logger class is static, and the server and appliction use
the same classloader, calling PropertyConfigurator.configure("myLogFile")
changes the logger for both server and appliction. This is not what I
want -I need the one log4j config file for the server and one log4j config
file for the application.

I believe that the solution may well revolve around using a separate
classloader for server and application. If so, I would very much appreciate
it if anyone could give me any information on impelemting this (or the URL
to this info). If not, any ideas would be gratefully received



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Q] Eclipse 3.1.1 WindowsXP and Hibernate 2.1 app to JBoss 4.x and Log4j? Rob Mitchell Java 0 01-25-2006 11:01 PM
Log4j configuration: how to suppress internal logs from Log4j? joes Java 1 08-06-2005 04:31 PM
Using log4j with Tomcat 4.1.30 problems with Rodolfo Java 0 07-12-2004 08:56 AM
log4j: locating log4j.proprties in same folder as jar Alex Hunsley Java 2 05-28-2004 09:57 PM
eclipse, junit, log4j, & finding log4j.xml Alexandra Stehman Java 0 01-19-2004 03:25 PM