A way is to replace the DBLoggingFactory by some own 'do nothing' 
implementation.

1/ Create a service

public class NothingLoggingService implements LoggingService {
  |     public static Logger LOG = 
Logger.getLogger(NothingLoggingService.class);
  |     
  |     public void log(ProcessLog processLog) {
  |             LOG.debug(  processLog.toString() );
  |     }
  | 
  |     public void close() {
  |     }
  | }
  | 

2/ Create a service


  | public class NothingLoggingServiceFactory implements ServiceFactory {
  |     public Service openService() {
  |             return new NothingLoggingService();
  |     }
  | 
  |     public void close() {
  |     }
  | 
  | }
  | 


3/ Cut and paste default xml config (from jar) into jbpm.cfg.xml

4/ Link the "logging" service, to your own implementation


  | <service name="logging" factory="........."/>
  | 


JBaton

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970920#3970920

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970920
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to