-
1. Re: Trivial vfs-3.0.x manifest access fails
alesj Mar 4, 2010 5:00 AM (in response to thomas.diesler)VFS3 requires explicit mount of non-plain files; e.g. zip, gzip, ...
See AbstractVFSArchiveStructureDeployer in Deployers on how this is done, or VFS tests.
-
2. Re: Trivial vfs-3.0.x manifest access fails
thomas.diesler Mar 4, 2010 5:11 AM (in response to thomas.diesler)I added this
MountOwner owner = new VirtualFileOwner(root); Automounter.mount(owner, root);
which seems to work.
Is this right?
Is there some cleanup needed?Please document the correct usage of the API.
Good javadoc with code examples on how to use the API is the minimum.
Alternatively, you could provide a wiki or docbook.
-
3. Re: Trivial vfs-3.0.x manifest access fails
thomas.diesler Mar 4, 2010 5:19 AM (in response to alesj)No, I do not want to see some other bit of undocumented code.
Instead, I want to be directed to the jboss-vfs documentation.
Perhaps you like to confirm that this is indeed on the roadmap.
-
4. Re: Trivial vfs-3.0.x manifest access fails
alesj Mar 4, 2010 5:20 AM (in response to thomas.diesler)I added this
MountOwner owner = new VirtualFileOwner(root); Automounter.mount(owner, root);
which seems to work.
Is this right?
Is there some cleanup needed?No need for MountOwner, Automounter::mount takes Object, and wraps it -- same as you did explicitly.
Yes, you need to preform explicit cleanup as well -- Automounter::mount returns Closeable cleanup handle.
-
5. Re: Trivial vfs-3.0.x manifest access fails
dmlloyd Mar 4, 2010 10:23 AM (in response to alesj)But, don't use automounter unless you have no other choice. It's not intended as a consumable API; it's only there until we can work out a good way to get mounting into the deployment lifecycle/dependency graph.
In fact maybe I can convince John to deprecate it right off...
I think it'd be better if we have a deployed MC bean which represents the mount of the archive, and then everything using that mount will have a dependency on that.
In the standalone case (e.g. testing) you can just mount the archive and unmount it again in a
finally
block.Note that the normal mount API is well-documented.
-
6. Re: Trivial vfs-3.0.x manifest access fails
asoldano Mar 4, 2010 10:28 AM (in response to dmlloyd)david.lloyd@jboss.com ha scritto:
I think it'd be better if we have a deployed MC bean which represents the mount of the archive, and then everything using that mount will have a dependency on that.
+1