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
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)