Christoph Steinbeck написа:
> Nina, thanks for this report.
> This is very likely the reason for very strange behaviour that we found
> when using MDLWriters in Taverna workflows.
> We often ended up with MDL files which where a strange mixture of lines
> but nothing like an MDL file :-)
>
>   
Yes, this is a possible effect :)  I was actually surprised nobody has
reported anything on this, since the static field already lives for year
and a half.

Regards,
Nina

> Cheers,
>
> Chris
>
> Nina Jeliazkova wrote:
>   
>> Hi all,
>>
>> Is there any reason for MDLWriter to use static member BufferedWriter
>> (this is currently in SVN, it is a change from older CDK source )
>>
>> This prevents using more than one MDLWriter on the same time, for
>> example the following code will produce a mess.
>>
>> MDLWriter writer1 = new MDLWriter(new FileOutputStream("file1"));
>> MDLWriter writer2 = new MDLWriter(new FileOutputStream("file2"));
>>
>> while (something) {
>>     writer1.write(onemolecule);
>>     writer2.write(othermolecule);
>> }
>>
>> and in multithreaded environment (e.g. servlets, portlets, web services)
>> using a static writer will give unexpected results.
>>
>> Just had a look - other instances of DefaultChemObjectWriter also use
>> static BufferedWriter members - WHY?
>>
>> Any ideas?
>>
>> Best regards,
>> Nina
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> Cdk-devel mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/cdk-devel
>>     
>
>
>   

-- 
---------------------------------
Dr. Nina Nikolova-Jeliazkova
Institute for Parallel Processing
Bulgarian Academy of Sciences
Acad. G. Bonchev St 25-A
1113 Sofia, Bulgaria
Tel: +359 886 802011
ICQ: 10705013
www: http://ambit.acad.bg/nina
---------------------------------
PGP Public Key
http://cert.acad.bg/pgp-keys/keys/nina-nikolova-0xEEABA669.asc
        8E99 8BAD D804 1A43 27B7  7F87 CF04 C7D1 EEAB A669
---------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to