you'd do something like this... in your Java code, instantiate an instance
of your logger (of whatever class)
import org.apache.commons.Log; // or whatever logger class you are using
private Log mylogger = new Log();
then create your command list and add the logger instance as a global:
List commands = new ArrayList<Command>();
commands.add(CommandFactory.newSetGlobal("logger", mylogger));
then in your rule you declare the global:
global org.apache.commons.Log logger;
--
View this message in context:
http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp319...
Sent from the Drools: User forum mailing list archive at
Nabble.com.