[Oorexx-devel] Questions ad an object being used by a different RexxInstance ...

2009-04-26 Thread Rony G. Flatscher
Given two different RexxInstances R1 and R2 running in the same process.
In R1 an object O1 is created and saved in .environment.

Two questions ad RexxInterpreter context:

   1. If from R2 an interaction occurs with O1 (addressed via
  .environment), in which context does O1 execute, in R1 (the
  creator RexxInterpreterInstance) or in R2 (the invoker
  RexxInterpreterInstance)?
   2. If R1 is terminated, but R2 interacts with O1 (addressed via
  .environment), in which context does O1 execute, in R1 (the
  creating RexxInterpreterInstance, but terminated) or in R2 (the
  invoking RexxInterpreterInstance)?

---rony



--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Questions ad an object being used by a different RexxInstance ...

2009-04-26 Thread Rick McGuire
I'm not sure this question makes any sense.  An interaction on an
object occurrs in the context of where the interaction is triggered.
Objects are just data, and have no knowledge of where they have been
created.  If one instance stores an object in .environment (generally
a bad practice), then it is just an object that's available for any
instance.  It will remain alive until the global Rexx environment is
terminated.

Rick

On Sun, Apr 26, 2009 at 6:32 AM, Rony G. Flatscher
rony.flatsc...@wu-wien.ac.at wrote:
 Given two different RexxInstances R1 and R2 running in the same process. In
 R1 an object O1 is created and saved in .environment.

 Two questions ad RexxInterpreter context:

 If from R2 an interaction occurs with O1 (addressed via .environment), in
 which context does O1 execute, in R1 (the creator RexxInterpreterInstance)
 or in R2 (the invoker RexxInterpreterInstance)?
 If R1 is terminated, but R2 interacts with O1 (addressed via
 .environment), in which context does O1 execute, in R1 (the creating
 RexxInterpreterInstance, but terminated) or in R2 (the invoking
 RexxInterpreterInstance)?

 ---rony




 --
 Crystal Reports #45; New Free Runtime and 30 Day Trial
 Check out the new simplified licensign option that enables unlimited
 royalty#45;free distribution of the report engine for externally facing
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Oorexx-devel mailing list
 Oorexx-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/oorexx-devel



--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Questions ad an object being used by a different RexxInstance ...

2009-04-26 Thread Rony G. Flatscher
Rick McGuire wrote:
 I'm not sure this question makes any sense.  An interaction on an
 object occurrs in the context of where the interaction is triggered.
 Objects are just data, and have no knowledge of where they have been
 created.  If one instance stores an object in .environment (generally
 a bad practice), then it is just an object that's available for any
 instance.  It will remain alive until the global Rexx environment is
 terminated.
   
The reason for asking is this: if having multiple
RexxInterpreterInstances running for different Java objects, and if one
wishes to allow Java to interact with proxy Rexx objects (in the JNI
layer), do I have to use the cached RexxInterpreterInstance (in the JNI
layer) from which the proxied Rexx objects come from originally, or is
it o.k. to use any present RexxInterpreterInstance to attach to and then
forwarding the Rexx proxy object messages from Java.

This is about contemplating of allowing Java to interact with Rexx
objects in a general way (not only for event handlers) and sending them
messages.

If I understood your answer correctly, then it does not matter which
RexxInterpreterInstance I would use to send messages to cached (in the
JNI layer) Rexx objects. (Also assuming, that once all
RexxInterpreterInstances got terminated, no such invocation should be
allowed anymore, but throw an exception.)

---rony


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel