-
1. Re: JMS appender in JBoss AS 7
jaikiran Dec 15, 2011 2:55 AM (in response to norad_2)I think you'll have to implement a custom handler until this http://community.jboss.org/message/641359#641359 is available.
-
2. Re: JMS appender in JBoss AS 7
nickarls Dec 16, 2011 1:36 AM (in response to jaikiran)When I was tinkering along with a datasource-backed DB-logger there were some issues with JNDI lookup because JNDI was not exported or something (and any workaround where not guaranteed to be supported in the future), would JNDI lookup for JMS (in this case) or the mail session for a mail appender face similar things?
-
3. Re: JMS appender in JBoss AS 7
jaikiran Dec 16, 2011 2:40 AM (in response to nickarls)Nicklas Karlsson wrote:
would JNDI lookup for JMS (in this case) or the mail session for a mail appender face similar things?
Yes
-
4. Re: JMS appender in JBoss AS 7
nickarls Dec 16, 2011 3:00 AM (in response to jaikiran)Are all modules forever doomed to be "outsiders" in this respect or has there been any thought of "AS modules" that could use JNDI lookup?
-
5. Re: JMS appender in JBoss AS 7
jaikiran Dec 16, 2011 3:07 AM (in response to nickarls)Nicklas Karlsson wrote:
or has there been any thought of "AS modules" that could use JNDI lookup?
It's just a matter of setting up the correct service dependencies while booting those appenders/handlers in the logging subsystem. Each handler might depend on a different (type of) service. But I think it should be doable atleast for some of the common usecases. From what I know, it hasn't yet been on priority because of other work that's going on in logging currently. But James and David would know if there's more to this than just setting up the correct dependencies.
-
6. Re: JMS appender in JBoss AS 7
jaikiran Dec 16, 2011 3:10 AM (in response to jaikiran)By the way, this isn't something specific to AS7. I believe the previous AS versions too had similar issues where the JMS queue or the datasource had to be available in the JNDI before these appenders defined the JBOSS_HOME/conf/jboss-log4j.xml could be started. I don't remember how that was solved (if at all) there.
-
7. Re: JMS appender in JBoss AS 7
nickarls Dec 16, 2011 3:12 AM (in response to jaikiran)I used lazy initialization for my appender so logging requests that came in before the lookup was successful were just silently dropped.
-
8. Re: JMS appender in JBoss AS 7
norad_2 Dec 16, 2011 1:00 PM (in response to jaikiran)jaikiran pai wrote:
By the way, this isn't something specific to AS7. I believe the previous AS versions too had similar issues where the JMS queue or the datasource had to be available in the JNDI before these appenders defined the JBOSS_HOME/conf/jboss-log4j.xml could be started. I don't remember how that was solved (if at all) there.
In JBoss 4.x you would add the topic/queue to the jndi.properties file in the jboss/server/<instance>/conf directory.
Datasource files were just dropped in the deploy directory and added to the jndi automatically.