What is suggested on that blog is exactly what I've tried. Unfortunately this no longer works because of JBoss VFS's custom vfs URL prefix. Seems like the reflections project has a solution for this:
But this requires you to build reflections from the source as this patch is not yet part of a release.
Weird that EJB 3.1 does not include anything for annotation based scanning (this would allow for interesting custom annotation based extensions). Something like:
Set<String> myClassNames = scanner.getTypeAnnotatedClassNames(MyAnnotation.class, ScannerScope.EJB_JAR);
What is the status of JBoss Papaki (previous JBoss Annotations)?. Is it used anywhere?