1 Reply Latest reply on Apr 14, 2009 12:30 PM by peterj

    scanning of server/xxx/deploy

    j-n00b

      Hi folks!

      My current task requires some really ugly classpath scanning. We have an interface called "Job" which may be implemented several times. Every implementation is packaged in a JAR under "deploy". A simple stateless Session Bean scans all available JARs and registers all Jobs in the database. To do the scanning itself, we are using a google framework called "reflections".

      My question: how do I get a URL of the "server/xxx/deploy" directory within JBoss? We want to avoid hardcoding the path as this would require permanent code changes.

      Thanks,
      Andre

        • 1. Re: scanning of server/xxx/deploy
          peterj

          The system property "jboss.server.home.url" will get you ".../server/xxx/".

          I thought that the deploy directory might be mentioned in the MainDeployer MBean, but it wasn't there (I looked in 5.0.1.GA)