Jim:
I can attest to the fact that having multiple Rete instances within
the same JVM is no problem. We have several Retes per thread --- and
several threads --- and they run well for days on end.
A humble, non-expert Jess user,
Adam Winkler
On May 31, 2006, at 11:12 AM, Jim Goodwin wrote:
Is it possible and practical to have multiple unrelated instances
of Jess
in the same JVM by simply consing up separate RETE objects?
I'm designing a distributed app which will have multiple Agents
(say 10 or 20),
which are independently distributable over a network. Each Agent
has its own
thread, and two different Agents can never have a java reference to
the same
object, even if they happen to be co-located on a given occasion.
Each Agent should similarly have its own independent facts and rules.
So I am thinking of just creating a separate RETE object for each
Agent
to use on its own thread.
If I read Chapter 18 of JIA correctly, this is a legitimate and
intended usage, no?
Jim Goodwin
--------------------------------------------------------------------
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 owner-jess-
[EMAIL PROTECTED]
--------------------------------------------------------------------
--------------------------------------------------------------------
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]
--------------------------------------------------------------------