If I remember correctly JSBML binds to the binary library
sbml.so/dylib/DLL-- if this is the case you *must* use system
classloader, otherwise the
second run would not be able to relink to the JNI library.

As to the ?  - it is not possible to have "local" system properties in Java,
so unless the JSBML allows you to control the xml factory in any way through
it's API you will have to stay with your workaround.

It might be possible to synchronize on the xmloutputfactory instance if it
itself has synchronized methods, but.. if it works now I would just leave it
as it is. ;)
On Jun 7, 2011 4:55 PM, "Mikołaj Rybiński" <[email protected]>
wrote:
> On Wed, May 25, 2011 at 14:35, Stian Soiland-Reyes
> <[email protected]> wrote:
>> 2011/5/25 Mikołaj Rybiński <[email protected]>:
>>
>>> Is there a way to dynamically set Java properties for the classloader
>>> persistence shared with the whole workflow?
>>
>>
>> In general with Beanshell dependencies you need to make sure that the
>> classloader sharing setting is the same on each beanshell that is to
>> share the dependencies, and then only one of them need to actually
>> tick the boxes for which JARs are needed - as on execution time
>> Taverna will check all such beanshells to build the combined
>> classpath.
>>
>> However with the System classloader setting you do not necessarily
>> need to flip all the other beanshell scripts as the system classloader
>> is always inherited in the other settings - but then you need to make
>> sure that the Beanshell script(s) that run first have the correct
>> setting and JARs ticked.
>>
>
> I rather thought of replacing:
>
> System.setProperty(...) + system classloader persistence
>
> with:
>
> ? + persistence shared with the whole workflow
>
> so that I wouldn't interfere with Taverna engine. Is there a piece of
> Beanshell code I can put in place of "?" ?
>
> Mikołaj
>
>
------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> taverna-users mailing list
> [email protected]
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to