Your language isn't very precise so I have to guess what you're
asking. Let me just say that if you've got a single Rete object
accessed by multiple clients, it doesn't make much sense for each of
them to repeat all the initialization steps for your system. Wither
they all need the same initialization, in which case it should be done
once before the clients touch the Rete object, or they each need
separate initialization, in which case they either need separate Rete
objects, or they should be serialized and each client should
completely clear the Rete object before using it. A situation in which
multiple clients are defining the same defclasses with different Java
classes, or whatever you're asking about, is really an architectural
nightmare, and you need to give some thought to your overall design.

But in any case, Jess 6.0a5's current behaviour (and I absolutely am
not saying that this is the expected, or supported, or documented
behaviour) is that the second and subsequent definstance calls
referencing the same Java object, regardless of the defclass name that
is used, are simply ignored. In contrast, each defclass using the same
Jess "tag" replaces any pevious defclass using that same tag (this is
the same behaviour that deftemplates have.) Multiple defclass calls on
the same class using different tag names are all completely
independent and won't interfere with each other.


I think chinnaswamy gounder wrote:
> Hi All,
> 
>          In an environment of concurrent users,  one
> user creates templates for class peoperties and
> passing the values to the knowledge base using
> defclass & definstance script functions in a running
> rete object.
> 
>          Without resetting the Rete ojbect, if another
> user does the same with  a different class name but
> having common field name, then there will be two
> templates with the same slot names and their values in
> the knowledge base.
> 
>          Which of the values in the knowledgebase will
> be picked up.
> 
> With regards
> 
> Chinnaswamy



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to