2 Replies Latest reply on Oct 16, 2007 4:08 PM by Larry Wilson

    Detect if JAR has loaded at runtime

    Larry Wilson Newbie

      We have a very odd need to detect - at runtime - if a JAR has been deployed in a JBoss instance, so that we can do some special handling. Don't ask.

      However - does anyone know "the best" method do detect if a JAR has been loaded?

      I've tried several methods - and checking for <jboss-install>/server/default/lib/ works but it can't be the best way. It feels like a total kludge.

      The need, coded, will look something like:
      if (jarHasBeenLoaded) doSomethingSpecial();

      So - all you hotshot Java folks out there! Any advice? [[be nice]]