[jboss-user] [JBoss Microcontainer Development] New message: "Re: Trivial vfs-3.0.x manifest access fails"
Ales Justin
do-not-reply at jboss.com
Thu Mar 4 05:21:04 EST 2010
User development,
A new message was posted in the thread "Trivial vfs-3.0.x manifest access fails":
http://community.jboss.org/message/529852#529852
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
> 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.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529852#529852
More information about the jboss-user
mailing list