WorkflowInstanceIntrospector introspector = new WorkflowInstanceIntrospector(persistentdbStorage, wfRepository);
final MonitoringLogbackDataProvider monitoringLogbackDataProvider = new MonitoringLogbackDataProvider(monitoringDataCollector);
final MonitoringDataProviderManager monitoringDataProviderManager = new MonitoringDataProviderManager(new SystemRessourceDataProvider(monitoringDataCollector),monitoringLogbackDataProvider,new GcDataProvider(monitoringDataCollector));
monitoringDataProviderManager.startAll();
CopperMonitoringService copperMonitoringService = new DefaultCopperMonitoringService(
new MonitoringDbStorage(txnController,new DerbyMonitoringDbDialect(new StandardJavaSerializer(),new CompressedBase64PostProcessor(),auditTrail)),
runtimeStatisticsCollector,
engines,
monitoringQueue,
true,
introspector,
new LogbackConfigManager(monitoringLogbackDataProvider),
monitoringDataProviderManager);
String host = (args.length > 0) ? args[0] : "localhost";
int port = (args.length > 1) ? Integer.parseInt(args[1]) : 8080;
CopperMonitoringService monitoringService;
LoginService loginService;
RemoteInvocationExecutor remoteInvocationExecutor;
if(unsecure) {
monitoringService = CopperMonitorServiceDefaultProxy.getServiceProxy(copperMonitoringService);
loginService = new DefaultLoginService();