What about JNI? If the data types used for parameters don't produce too 
much headache you might write a JESS-userfunction in Java which in turn 
uses JNI to call a C/C++ library. Bad idea?

:) Oliver Hoffmann

At 02:59 07.01.01 -0600, James C. Owen wrote:
>My suggestion would be to rewrite your code from the ground up.  i.e., 
>rewrite the
>C and C++ logic (not a straight transformation of the code - it should be
>re-architected) into Java.  One of the worst things that you can do is to 
>plug C
>into C++ syntax or to take C++ into Java syntax without a re-design.
>
>I know that this might be a pain in the whatever, but it would be well 
>worth it the
>effort in the long run.  Along with this, redesign the project so that you 
>properly
>"fit" the rule engine into your design.  One of the biggest headaches that I
>experience is projects where the architecture is done and THEN they (the 
>brilliant
>architects) decide that they would like to do something really cool, like 
>use a
>rulebase.  The project must (well, should) be rule-centric from the beginning.
>
>However, if the tools are C and C++ and you can NOT rewrite them, I would 
>suggest
>using an ORB manager, or CORBA.  Voyager is free and does CORBA 
>stuff.  CORBA can
>interface to C, C++, COBOL, Ada and other languages as well as Java.  But 
>you would
>have to learn CORBA.  There are several good books on the subject.  Here are a
>couple that I've found helpful:
>
>Client/Server Programming with Java and CORBA
>     Robert Orfali and Dan Harkey
>     (An easy read but Java-centric)
>
>Java Programming with CORBA
>     Andreas Vogel and Keith Duddy
>     ( More technical but still Java-Centric)
>
>Inside CORBA
>     Thomas J. Mowbray and William A. Ruh
>     (Booch - Jacobson - Rumbaugh series of books)
>
>The Essential CORBA
>     Thomas J. Mowbray and  Ron Zahavi
>     (From the OMG series - published in '95 but still a good reference)
>
>CORBA Fundamentals and Programming
>     Jon Siegel
>     (Jon is one of the founders of OMG - book has some good C / C++ / 
> Smalltalk
>examples)
>
>Bon Chance  :-)
>
>SGD
>jco
>
>
>"Manoj Kumar T.C." wrote:
>
> > Hello everyone,
> >
> > I am starting to develop an Expert System for Protein
> > formulation using JESS, for my PhD thesis. But i find
> > that i'll need to couple my system with several tools
> > that r coded in c\c++.
> >
> > Will it be easy to couple c\c++ code with Jess??
> >
> > can anyone help me out?
> >
> > truly,
> >
> > manoj
> >
> > =====
> > ================================================
> > Manoj K Thoppil Chandran;  M.Sc., M.Pharmacy
> > Grad. Student Instructor & Doctoral Scholar
> > University of the Sciences in Philadelphia
> > 600 South 43rd Street
> > Philadelphia, PA 19104-4495 (USA)
> > ================================================
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos - Share your holiday photos online!
> > http://photos.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > 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]
> > ---------------------------------------------------------------------
>
>--
>
>ttfn
>
>IHN
>Jim
>
>===============================
>James C. Owen
>Senior Knowledgebase Consultant
>Knowledge-Based Systems Corporation
>4817 Buckskin Drive
>Fort Worth, TX  76137
>
>817.314.0584 Office
>817.314.0585 FAX
>817.247.8976 Cell
>mailto:[EMAIL PROTECTED]
>http://www.kbsc.com
>
>"For we know that all things work for the good of those who love the Lord 
>and are
>called according to His purpose."  Romans 2:28
>
>
>
>---------------------------------------------------------------------
>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]
>---------------------------------------------------------------------


---------------------------------------------------------------------
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