-
1. Re: How does jboss-structure.xml's moditification attribute influence classpath in JBoss 5.1?
alesj Jan 26, 2012 11:29 PM (in response to findepi)1 of 1 people found this helpfulWhy not use VFS for scanning?
If it's the case of having it working in other non-VFS envs,
simply create an abstraction, which checks if VFS is available,
if not, fall-back to non-VFS / jar scanning.
At least that's what I would do, or did for Facelets (for some support patch).
Getting a hold of tmp resources is even uglier, more impl details,
then having a simple and proper VFS impl, over some simple abstarction.
-
2. Re: How does jboss-structure.xml's moditification attribute influence classpath in JBoss 5.1?
findepi Jan 27, 2012 7:03 AM (in response to alesj)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