Content
- Check out Source Code from Globus BitBucket
- ERPStatic
- erpjobs
- Import Projects into Eclipse
Potential Problems:
- When you build the project using mvn clean install, the project build could potentially fail because of references to system libraries which may not be reachable
- When eclipse:eclipse is being attempted as mvn goal, the build fails due to maven compiler plugin. The maven compiler plugin can be removed as it is redundant.
- The erpjobs is to be deployed in a Jboss Server. For Developer testing, this process is often cumbersome as it is time consuming to deploy the changes
Correct the POM Entries for your local development and follow step 1 and 2. A sample POM used in my mac machine is attached for your reference (Please modify accordingly)
Modify DBConnection Wrapper class to manage DB Connections outside the Jboss Server to test the methods/classes using main method or by writing JUNIT Tests
public class DBConnectionWrapper implements Serializable {
...
public Connection getConnection(GmDNSNamesEnum enDNSName) throws Exception {
// Connection connection = null;
// String dsName = "jdbc/globus";
try {
//DataSource ds = (DataSource) ic.lookup(enDNSName.getDNSName());
//globus_app@//10.120.4.253:1522/GMIONESTG.wlsokenprddb.wlsokenprdvcn.oraclevcn.com
conn = DriverManager.getConnection("jdbc:oracle:thin:@10.80.20.232:1522:ODCDEV",
"GLOBUS_APP","App$74335mig");
conn.setAutoCommit(false);
....