[jboss-jira] [JBoss JIRA] Commented: (JBVFS-154) Provide VirtualFile.getStreamURL()
David Lloyd (JIRA)
jira-events at lists.jboss.org
Thu Mar 25 11:24:45 EDT 2010
[ https://jira.jboss.org/jira/browse/JBVFS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12522074#action_12522074 ]
David Lloyd commented on JBVFS-154:
-----------------------------------
You've got it backwards. If you haven't installed the bundle yet, it should NOT be mounted! You should get the raw bundle bytes, and your implementation of installBundle should do any mounting (or not - it IS within the realm of possibility that mounting is NOT at all appropriate for OSGi bundles, expecially if we're handing them off to a third-party deployer!!)
VFS is not a silver bullet. It's designed for a specific purpose, which does not apply for third-party deployment frameworks. If you want to use VFS so badly, maybe you should replace the third-party OSGi bundle deployer with your own?
> Provide VirtualFile.getStreamURL()
> ----------------------------------
>
> Key: JBVFS-154
> URL: https://jira.jboss.org/jira/browse/JBVFS-154
> Project: JBoss VFS
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Thomas Diesler
> Assignee: John Bailey
>
> The OSGi third party integration needs to be able to reliably read the bundle bytes from an URL
> OSGi decouples the location of a bundle (an opaque string) from the actual source of the bundle bytes
> http://www.osgi.org/javadoc/r4v42/org/osgi/framework/BundleContext.html#installBundle(java.lang.String,%20java.io.InputStream)
> A remote management agent (i.e. my osgi testsuite) uses an URL to the bundle bytes.
> The OSGi VFS abstraction therefore provides
> VirtualFile.getStreamURL()
> http://jbmuc.dyndns.org:8280/hudson/job/jbossosgi-jdk16/ws/jboss-osgi/distribution/installer/target/auto-install-dest/docs/apidocs/org/jboss/osgi/vfs/VirtualFile.html#getStreamURL()
> It works such that the VF is automatically mounted and copied to a zip archive, which is then the source of that stream URL.
> Please consider to provide this functionality at VFS level.
> http://fisheye.jboss.org/browse/JBossOSGi/projects/vfs/trunk/vfs30/src/main/java/org/jboss/osgi/vfs30/VFSAdaptor30.java
> http://fisheye.jboss.org/browse/JBossOSGi/projects/vfs/trunk/vfs30/src/main/java/org/jboss/osgi/vfs30/VirtualFileAdaptor30.java
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list