Hi,
thanks for your reply. Apparently i can use VFS scanning indirectly, thanks to Snowdrop, like this:
applicationContext.getResources("classpath*:/com/example/**.class");
This is great -- but this does not free me from detection code, as this method does not work on JBoss 4.2.3.
If there is indeed no other way to have portable code without "appserver IF-ing", then i will go for this. But i wish there was :)