Not easily.
According to the spec you can't create user threads. However, a lot of
things are hard to achieve without stepping outside the enterprise spec.
Even Sun admits so. The idea is that resources management ( such as threads
) are hidden from the application developer.
As long as code spa
Hi folks, I've got a bit of a start on a servlet that allows dynamic configuration changes
to log levels used by various Logger's. It already is quite useful for me as it allows
changes to be made to a running/deployed web-app without restarting or re-deploying.
If this was included in the log4j
Another interesting situation.
We want to have one log4j.properties file. We also want all the classes
to use one status logger.
However, if the software is run on the web server (via servlets) we want
the information to go into
the web server log. If it is run on a server (via Java main) we want
So, I create by example a
Private Logger logger = Logger.getLogger("MyApplicationName");
In a servlet or jsp or EJB component.
Can I pass this variable to another component to use the same logger on the same
appender(s) in other component, then the used appender will be the same appender as
t
Which logger variables are you referring to exactly?
At 08:19 PM 6/14/2004, you wrote:
Can I pass the logger variables to another shared J2EE component (servlets
or EJB) without having performance issues or any other issues?
Dominique
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PRO
Can I pass the logger variables to another shared J2EE component (servlets or EJB)
without having performance issues or any other issues?
Dominique
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent: lundi 14 juin 2004 14:31
To: Log4J Users List
Subject: RE: An appender
Hi everyone! I'm having a problem using external configuration files. I'm
pretty new to log4j. I can create and use loggers with the
BasicConfigurator, but when I try to use my own properties file, it doesn't
work. Here's what's going on:
It's very simple, I'm using a .properties file r
Hi list,
I'm looking for the best solution to get all defined appenders. One
solution I found was to iterate over all loggers, get their appenders
and store them in a list - but i hope there is a better solution?
I have a second issue. I want to keep informed when the logging
configuration chan
Is there a way to achieve this functionality without spawning a thread?
(just wondered if there's a work-around)
Does this also apply to the AsynAppender? (I thought maybe it uses a thread
also)
Mike
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14
Hi,
Read the J2EE Specification guidelines on spawning user threads within a container to
understand why. configureAndWatch spawns a thread, albeit a daemon, to watch the file.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Adrian Beech [mailto:[EMAIL PROTECTE
Hello,
I am trying to configure the log4j.properties file to point to the Linux syslog. Does
anyone have
any pointers or a sample configuration file that I can look at?
Thanks,
Hut
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hello
I am looking for some performance numbers for Database Logging.
I want to be able to analyze/query my log records at a later date in
multiple of ways. Hence Logging into database seems to be the perfect
choice. But the system is a transactional system and it will be handling
more than a m
Viv,
For solution #1 to work, your WAR file needs to live inside an EAR file. So
your EAR file would look something like:
/
myapp.war
META-INF/
application.xml
jboss-app.xml
Where the classloading settings are placed in the jboss-app.xml. Also,
please recall that you WAR file s
Check out log4j 1.3 from CVS and follow the examples under
/examples/tiny-webapp/.
The most important point to remember is to declare the logger variables in
classes (in your toolkit) as instance variables and not as static class
variables.
Do not hesitate to ask questions after you have tried
We have servlets, EJB, JSP...
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent: lundi 14 juin 2004 14:14
To: Log4J Users List
Subject: Re: An appender based on application level and on class hierarchy
What type of applications are these?
At 02:06 PM 6/14/2004, you wr
What type of applications are these?
At 02:06 PM 6/14/2004, you wrote:
Hi,
I have multiple applications which are sharing different classes
(toolkit). I would like to know which is the best technique to have a
log file per application and if a log message is done in a shared class
the information
Hi,
I have multiple applications which are sharing different classes
(toolkit). I would like to know which is the best technique to have a
log file per application and if a log message is done in a shared class
the information will be sent to the application log and not to a 'class'
log. In fact
Hi,
I have two applications servers running J2EE servers (Jboss for
instance). They are running the same applications in a load
balancing/fail over perspective. For security and policy reason NetBios
can't be installed and then no share drive are available.
My problem is that I would like to be a
18 matches
Mail list logo