[jboss-dev] hibernate 3.3.0 upgrade, slf4j introduction into jbossas

Jason T. Greene jason.greene at redhat.com
Mon May 5 14:50:26 EDT 2008


Max Rydahl Andersen wrote:
> On Mon, 05 May 2008 20:12:29 +0200, Ales Justin <ales.justin at gmail.com> wrote:
> 
>> Weird that you have to modify some class, StaticLoggerBinder.
>>
>> What you could do is just add a System property which would take a list
>> of possible new impls, and the check if they exist on the classpath via
>> reflection, taking the first one existing.
> 
> This is exactly why commons-logging was scrapped!
> 
> reflection is not usable across different deployment scenarios.
> 

If a static binding works, then a Class.forName() will work, since this 
is what a static binding does.

-- 
Jason T. Greene
JBoss, a division of Red Hat



More information about the jboss-development mailing list