This content has been marked as final.
Show 1 reply
-
1. Re: Extending the WAR deployer
jaikiran Jul 25, 2008 10:35 AM (in response to viniciuscarvalho)"viniciuscarvalho" wrote:
Hello there! Is there an way to be notified whenever a new WAR gets deployed?
Yes. See these
http://wiki.jboss.org/wiki/NotificationsEmittedByJBossMBeans
http://wiki.jboss.org/wiki/HowCanNonMBeansReceiveJMXNotifications"viniciuscarvalho" wrote:
I need to look for an specific file inside the WARs deployed inside my app. Is this possible to be done?
Yes. Here's an example (assuming that you have the file at the root of the WAR):InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("myFile.properties");