Hi Linda, > I am using BSF and Rhino in my java application to execute javascript files. > > Because the requirement of my project, I need to run multiple instance of > one script file simutaneously. To avoid the memory issue, I used only one > BSFManager instance for my whole application, and every time when I need to > start executing a script file, I start a separate thread and use the only > bsfManager instance to evaluate the script file. > > Then I noticed that, when I only have one thread, every thing is perfect; > But when I have more than one threads, the script generate inconsistant, > weird output; It looks that the multi thread scripts code interfere with each > other. > > Any one here ran into similar issue? Any idea? > How about creating a pool of BSFManager instances and (re-)using the instances to deploy the scripts such, that each BSFManager instance serves one script executing in the same thread?
---rony --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]