View Javadoc

1   /*
2    * $Id: LoanBrokerApp.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.example.loanbroker.bpm;
12  
13  import org.mule.example.loanbroker.AbstractLoanBrokerApp;
14  //import org.mule.tck.util.MuleDerbyTestUtils;
15  
16  /**
17   * Executes the LoanBroker BPM example.  This is a standalone app which assumes Mule is running somewhere.
18   */
19  public class LoanBrokerApp extends AbstractLoanBrokerApp
20  {
21      /*
22      public LoanBrokerApp(String config) throws Exception
23      {
24          super(config);
25      }
26      */
27  
28      public LoanBrokerApp() throws Exception
29      {
30          super();
31      }    
32      
33      public static void main(String[] args) throws Exception
34      {
35          //String configFile = "loan-broker-bpm-mule-config.xml";
36      /*
37          if (args != null && args.length > 0 
38              // This is a hack for MULE-4082 which assumes that if the parameter is a 
39              // Mule config file, it will contain a "." in the name
40              && args[0].contains("."))
41          {
42              configFile = args[0];
43          }
44      */
45          //LoanBrokerApp loanBrokerApp = new LoanBrokerApp(configFile);
46          LoanBrokerApp loanBrokerApp = new LoanBrokerApp();
47          loanBrokerApp.run(false);
48      }
49  
50      @Override
51      protected void init() throws Exception
52      {
53          super.init();
54      }
55  }