[jboss-user] [Snowdrop] - Re: JBoss 6 + Snowdrop2 + Red5

Scott Kroll do-not-reply at jboss.com
Fri Jul 22 10:14:52 EDT 2011

Scott Kroll [http://community.jboss.org/people/skroll] created the discussion

"Re: JBoss 6 + Snowdrop2 + Red5"

To view the discussion, visit: http://community.jboss.org/message/617050#617050


And I figured it out  :) . Looks like there's some trickery you can do with JBoss AS7 in regards to modules. JBoss uses it's own logging system (jboss-logmanager) and luckily for us, they package a slf4j bridge for it. However, to let your EAR load the modules, you have to create a jboss-deployment-structure.xml file and tell it to load modules. If you look in $JBOSS_HOME/modules you will see a directory structure of modules, and each one will have a module.xml. If you look in the module.xml, you will see the moduel has a name value. Using that, you can import these modules into yuor application.

So here is what I did to get sane logging:

I created in META-INF of the EAR, this jboss-deployment-structure.xml:

> <jboss-deployment-structure>
>     <deployment>
>         <dependencies>
>             <module name="org.slf4j" />
>             <module name="org.slf4j.impl" />
>             <module name="org.slf4j.jcl-over-slf4j" />
>         </dependencies>
>     </deployment>
> </jboss-deployment-structure>
Then, in red5.ear/lib, I deleted:

Because we are now importing them from the jboss module directory.

And I also deleted:

So that slf4j does not try to use logback as it's logging system. The org.slf4j.impl module from jboss provides the slf4j interface for jboss' own logging system. Once this is done, your applications will now obey the configuration you set in standalone.xml, which you can see in around the section starting with <subsystem xmlns="urn:jboss:domain:logging:1.0">.

I'm not sure how to get the logging configuration per application yet, but that's my final task. Definitely nice to not be bombarded with logging information, though.

Reply to this message by going to Community

Start a new discussion in Snowdrop at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110722/88bad92d/attachment.html 

More information about the jboss-user mailing list