[
https://issues.apache.org/activemq/browse/SM-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38746
]
Guillaume Nodet commented on SM-875:
------------------------------------
Hi James,
I only had a very brief look yesterday, so your explanations are welcome. I do
understand much better
how it works now. I don't think there is a way to use a marshaler for such a
case (it would be interesting when
polling compressed files containing a single file entry).
It's a pitty that commons-vfs does not handle writing in zips ... but now I
understand why you have chosen this
small library.
On the endpoint resolution side, this is not much documented yet.
But the whole point is that the protocol URI is used to automatically find if
the component supports it.
So you can try changing the uri in the test to something like:
protected String dynamicURI =
"truezip://target/dynamicEndpoint.zip?file.tempFilePrefix=dynamicEp-";
Note the "truezip:" protocol used.
You should be able to debug the component's getResolvedEPR method ...
Also, if you could change the package of the test classes to match the one of
the sources
(org.apache.servicemix.truezip instead of org.apache.servicemix.file)
that would be cool.
On the class loader potential problem, we need to dig that a bit more. I guess
the problem
happen when several copies of the libraries try to access the same files. This
should not be
the case, as the library will be embedded inside the component classloader, and
unless you
install several different copies of this component, it should be fine.
Sounds like a good patch, thanks !
Btw, if you envision to become a committer,
you should try to sign and fax a CLA to the ASF.
See http://incubator.apache.org/servicemix/becoming-a-committer.html
> TrueZIP binding component
> -------------------------
>
> Key: SM-875
> URL: https://issues.apache.org/activemq/browse/SM-875
> Project: ServiceMix
> Issue Type: New Feature
> Affects Versions: 3.1
> Reporter: James Bradt
> Attachments: trueZip-smx.zip
>
>
> suggest new binding component using TrueZIP toolset - allows files to be
> read/written to compressed archives
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.