Hi, as discussed on IRC, I have trouble creating multiple simultaneous tasks from inside component.
Creating new thread results in malformed context, which can result in XWikiException. This could probably be avoided using Jobs, but nobody seems to know how exactly. As of 5.1, it should be able to create custom jobs by extending AbstractJob. But how to get context inside that job? Could I use Provider in such way as in ScriptWikiStreamConverterJob? (Multitaskness should be achieved with InstantiationStrategy) About what I need to achieve - component creating API for "videolibrary" extension (converting video attachment in certaing page to web-playable format using libav). Since it should be safe to use, attachment is immediately copied to specified temp folder (filesystem) after uploading. Old attachment is deleted to ensure we didn't convert same file twice (there is no callback with filenames for html5 fileupload widget). After this, video will be converted to specified format and attached to different page (using InputStream?). Is this idea safe to use? (or am I missing another possible problem?) Thanks for replies -- Best Regards Lukas Raska _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

