This content has been marked as final.
Show 3 replies
-
1. Re: is it possible to do jboss config listener from ejb app?
jaikiran May 20, 2008 1:03 PM (in response to grdzeli_kaci)"grdzeli_kaci" wrote:
how log4j do it ?
You mean how are the changes to log4j.xml (or jboss-log4j.xml) in the conf folder of JBoss being noticed when the server is running? It's actually not Log4j which does that. JBoss creates a java.util.TimerTask which periodically checks the lastUpdateTime of the file and invokes the appropriate APIs in case of any changes to that file.
-
2. Re: is it possible to do jboss config listener from ejb app?
grdzeli_kaci May 20, 2008 1:30 PM (in response to grdzeli_kaci)thanks for your quick reply jaikiran.
is it correct to use timertask for file change listeners from my ejb3 application ?
i had already some problems with threads into my ejb application.
i thought maybe there is some abstract class for listening configs into jboss.
i could do this by timertask.
thank you very much again.
____________________
Regards
Paata Lominadze
Magticom LTD. -
3. Re: is it possible to do jboss config listener from ejb app?
jaikiran May 20, 2008 1:46 PM (in response to grdzeli_kaci)"grdzeli_kaci" wrote:
thanks for your quick reply jaikiran.
is it correct to use timertask for file change listeners from my ejb3 application ?
i had already some problems with threads into my ejb application.
i thought maybe there is some abstract class for listening configs into jboss.
i could do this by timertask.
thank you very much again.
I don't exactly know the requirements of your application. But, you need not do this logic in your EJBs. See this documentation http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/beta422/html/Additional_Services.html#Additional_Services-Scheduling_Tasks for one possible way of scheduling tasks to handle this.