You can set the log values two ways:  Through the log4j.xml file, or via the 
jmx-console.

I prefer the jmx-console, as it is easy access, but either way works.

Go to your jmx-console (http://localhost:8080/jmx-console)

Scroll down to the heading "jboss.system" and choose the 
"service=Logging,type=Log4jService".

Scroll down to "void setLoggerLevel()".  There are two parameters.  The log 
that you want to set, and the level that logging should happen.

For the "logger" parameter, type in "org.jboss.EJB3".  For the level parameter, 
type in "DEBUG".  Do the same for "org.hibernate".

Redeploy your app, and view the log file in /server/default/log/server.log.
anonymous wrote : But why does it work on the "NON PRODUCTION" version of 
jboss? 
I apologize if this is a stupid question, but I don't follow you by saying 
"NON-PRODUCTION" version.  I am running JBoss4.0.3 final.  Not RC1 or RC2.

Not sure why it runs in your "NON-PRODUCTION" version, other than code changes.

anonymous wrote : I am using the "jboss 4.0.3 production version" but I guess 
you are speaking of another thing, don't you?
  | No! It is my own pc at home. I am developing a little application for my 
study. So I could easily change everything I have to change. 

I was referring to a "production" server or "development" server.  YOu answered 
the question correctly by specifying running it on your home machine.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901871#3901871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901871


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to