-
1. Re: RepositorySelector and hibernate log
boby Nov 21, 2008 5:26 AM (in response to boby)I forgot, Im using JBoss-4.0.5GA
-
2. Re: RepositorySelector and hibernate log
boby Nov 21, 2008 5:04 PM (in response to boby)In fact, it would be more simple to use the jboss-log4j.xml to manage the log config for each application. The inconvenient is to have to manage this file on every Jboss server, but this solution avoids the problems with the Log4jRepositorySelector which seems to me hard to apply perfectly.
Im gonna thinking. -
3. Re: RepositorySelector and hibernate log
jaikiran Nov 22, 2008 3:07 AM (in response to boby)"boby" wrote:
In fact, it would be more simple to use the jboss-log4j.xml to manage the log config for each application. The inconvenient is to have to manage this file on every Jboss server, but this solution avoids the problems with the Log4jRepositorySelector which seems to me hard to apply perfectly.
I have to agree with this. The repository selector approach looks a bit complicated and i have seen posts in this forums where users have tried configuring it without much luck.
JBoss-4.2.x makes configuring your own log4j.xml very easy. If you have an option of moving to JBoss-4.2.x, let us know, we can point you to a thread where configuring log4j config file is explained. -
4. Re: RepositorySelector and hibernate log
boby Nov 22, 2008 5:55 AM (in response to boby)Your thread could interest to me. I m curious to know how we can configure own log4j in JBoss-4.2. This thread may give some ideas even if I cant move to JBoss-4.2 today.
Thanks a lot. Anyway, I think to give up the Log4jRepositorySelector. -
-
6. Re: RepositorySelector and hibernate log
jaikiran Nov 22, 2008 6:50 AM (in response to boby)Thinking more about this, i guess you could achieve the same in JBoss-4.0.5 GA too, if you are willing to rename %JBOSS_HOME%/server/< serverName>/conf/log4j.xml to something else (ex: jboss-log4j.xml)
-
7. Re: RepositorySelector and hibernate log
boby Nov 25, 2008 2:28 PM (in response to boby)Thanks for your advice. I chose the jboss-log4j.xml to configure my application's log. I'll see later to use some log4j for each application in .ear with JBoss5.
I dont prefer avoiding your last solution which is the classloader scoping, as said in this Wiki :
http://www.jboss.org/community/docs/DOC-12003.
However, it may be interesting sometimes.
Thanks again.