Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 38821 invoked from network); 14 Aug 2003 14:58:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 Aug 2003 14:58:58 -0000 Received: (qmail 18761 invoked by uid 97); 14 Aug 2003 15:01:40 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 18753 invoked from network); 14 Aug 2003 15:01:39 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 14 Aug 2003 15:01:39 -0000 Received: (qmail 30192 invoked by uid 500); 14 Aug 2003 14:56:39 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 30127 invoked from network); 14 Aug 2003 14:56:38 -0000 Received: from smtp1.echo-on.net (204.138.111.138) by daedalus.apache.org with SMTP; 14 Aug 2003 14:56:38 -0000 Received: from mail2.springworth.com (static-b2-121.highspeed.eol.ca [64.56.236.121]) by smtp1.echo-on.net (Postfix) with ESMTP id 2080A15672 for ; Thu, 14 Aug 2003 10:56:55 -0400 (EDT) Received: from ePocket.com ([192.168.2.187]) by mail2.springworth.com (8.11.6/8.11.6) with ESMTP id h7EErWR27785; Thu, 14 Aug 2003 10:53:32 -0400 Message-ID: <3F3BA346.5000406@ePocket.com> Date: Thu, 14 Aug 2003 10:57:10 -0400 From: Don Isenor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: log4j-user@jakarta.apache.org Subject: JMSAppender initialization Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N (I'm a new subscriber, not sure if this request was posted on the first attempt...) I'm having no luck deploying a JMSAppender class (based on Jamie Tsao's code) under JBoss (3.0.7 and 3.2.1)... JBoss initializes log4j before it sets up the JMS queues, so my appender throws an exception trying to initialize. There appears to be no way to defer the initialization until such time as the queue is available, and no way to retry the initialization. Calling the initialize (the activateOptions() method) from my servlet has no effect - I suspect a classloader problem here, i.e., my servlet and log4j are not using the same classloader. Doing all the work (creating the appender, configuring it, and attaching it to the root logger) in the servlet rather than via log4j.xml similarly has no effect -- the appender's append() method is never called. Any assistance would be appreciated, thanks. Don Isenor ePocket Inc. Don.Isenor@ePocket.com --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org