1 of 1 people found this helpful
Why 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.
thanks for your reply. Apparently i can use VFS scanning indirectly, thanks to Snowdrop, like this:
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