Yes, there should not be a problem with this, as a scope
is essentially just a container. Multiple scripts can be executed under one
scope simultaneously as well. All presuming, as you stated, that the objects
are immutable or you have made them thread safe yourself (Rhino does not make
any effort to make the access to your objects thread safe, that will be your
job).
David
-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+davidparks21=yahoo....@lists.mozilla.org
[mailto:dev-tech-js-engine-rhino-bounces+davidparks21=yahoo....@lists.mozilla.org]
On Behalf Of Aleksandar Likic
Sent: Thursday, March 11, 2010 7:02 AM
To: Rhino List JS User
Subject: Scope and Multithreading
Hi,
Does anyone know if the same scope (Scriptable) instance
can be used by multiple threads at the same time, provided the following:
- All objects put into the scope are thread safe
- All scripts contain only function definitions which
don't define any new global variables
I am using Rhino that comes with Weblogic 10.0.0.1
(1.6R4?)
Thanks,
Aleksandar Likic
The information contained in this e-mail message and any
attachments may be privileged and confidential. If the reader of this message
is not the intended recipient or an agent responsible for delivering it to the
intended recipient, you are hereby notified that any review, dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender immediately
by replying to this e-mail and delete the message and any attachments from your
computer.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino