| How do I call my Java Classes In Open Lexicon? |
|
|
|
|
The class file for the Java class whose method you want to call needs to be added to the classpath. Probably the best way to do this is to add it in the common/classes directory of the webserver (this is outside of the openlexicon application directory). On my system this directory's location is "Tomcat/common/classes". Be sure to preserve the directory structure for the package. If this doesn't seem to do the trick, you can try adding it directly to the openlexicon class structure, which is something like "Tomcat/webapps/openlexicon/WEB-INF/classes". You'll probably have to restart the webserver after you put the class file into place in either case. As far as defining the java expression business rule, you will want to define the output parameter as the first parameter for the business rule, followed by the input parameters in the proper order. The expression owner should be the package name of the class (including the class), and the expression name should be the method name. The method should be static, because Lexicon won't know how to construct an object in order to call your method. |
OpenLexicon.org | Home