Hi,
Well, of course, it depends on what you want to do. If you just want
Jess to be a client to CORBA objects, it's easy enough to use Jess's
reflection functions to simply speak to the CORBA objects using a Java
ORB. I've done this myself, as have other folks here at Sandia.
The implementation language doesn't matter as long as you talk through
the ORB.
Now, if you want to pattern-match on CORBA objects, then you've got a
bit more work ahead of you. Recent versions of Jess support "static
definstances", which are basically snapshots of Java objects that are
refreshed only when a (reset) is done. To use this with CORBA objects,
you could write a simple Bean for each type of CORBA object; the getX
methods would simply use CORBA client calls to retrieve the
corresponding properties from the actual CORBA object. If the CORBA
objects have fixed or relatively fixed properties, this would work
great.
Now, if you need dynamic response, then you're going to have to figure
out some way to notify that Bean when the CORBA object's properties
change. If the CORBA object supports any kind of change notifier, you
can use that; if not, I suppose the Bean itself could export a
notification function that clients of the CORBA object were expected
to call. If all else fails, the Bean could (gak) poll the CORBA object
for changes; this is probably -not- a good idea!
I think Rudolph George-P27574 wrote:
>
> What's the best/most efficient/most common way of dealing with CORBA objects
> in Jess?
> Assumptions:
> 1. CORBA objects/object interfaces don't support Java property change
> notifications,
> 2. The actual object implementations may be in a language other than Java.
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [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]
---------------------------------------------------------------------