Hi,
Thank you for your reply.

Could give me more precisions about the way Java communicate with CLIPS
I guess CLIPS can communicate to Java via the CLIPS C interface, how can Java
communicate with CLIPS ??
I've no idea the way I've to begin...

Could you send me an example about this ?

Thank you very much.

Best regards,

    patick.


William Grosso wrote:

> Yes, CLIPS can be integrated with Java. We did it
> by using JNI (the Java Native Interface). The basic
> idea was to turn the Java code into a front-end for
> Clips (in much the same way as the usual shell
> interfaces do).
>
> If you want to define userfunctions in Java, it's a
> bit harder. But, C functions can talk to the JVM and
> you can send messages to Java objects from within C.
> We've implemented one userfunction, dealing with
> networked communication, by registering a "callback"
> Java object with the C code (via, sorry to say, a
> global). When the Java application initializes, it
> calls a native function that records the id of the
> callback object. When the CLIPS code calls the userfunction,
> it relays the message out to the Java application.
>
> But, all our stuff is done using CORBA. And, I suspect,
> the real difficulty is with the "web server" part. If
> you're using CGI or servlets, there might be a fair amount
> of overhead involved (in launching and relaunching CLIPS).
> Not to mention the cataclysmic loss of state :-) I'd guess
> that you'd probably want to have a separate standalone
> application that your web server talks to (using Java for
> the sockets or RMI or CORBA stuff)
>
> The problem then becomes threading. AFAIK, CLIPS isn't very
> amenable to multiple threads. Which means that multiple web
> clients need to either be queued up or involve different servers.
> Another tricky bit is this: since multiple users might be
> using a CLIPS engine over time, you might need to embed a notion
> of "session id" in your code base (e.g. a notion that "all
> lists begin with a session id and all rules only fire when the
> sessions id's match across lists").
>
> Just some thoughts,
>
> William Grosso
>
> Patrick Bossard wrote:
> >
> > Hi ,
> > I'd like to add an expert system to a web server Java application. Can
> > CLIPS be inintegrated into a Java application ? What will I have to do
> > to this ?
> > Thanx
> >
> >   Patrick.
> >
> --
> To subscribe or unsubscribe, send email to [EMAIL PROTECTED]
> with your request (subscribe, unsubscribe) in the BODY of the message.
> The official CLIPS homepage resides at: http://www.ghg.net/clips/CLIPS.html
>





--
--------------------------------------------------------------------------------

Patrick Bossard - Atlantide
Mail : [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to