Revision 2:da28c34e9853
src/main/java/my/com/upass/Config.java | ||
---|---|---|
13 | 13 |
private static final Logger logger = Logger.getLogger (Config.class); |
14 | 14 |
private static final Properties props = new Properties (); |
15 | 15 |
private static Config instance = null; |
16 |
private static String CONFIG = "upass.cfg"; |
|
16 |
|
|
17 |
// private static String CONFIG = "upass.cfg"; |
|
18 |
private static String CONFIG = "upassMin.properties"; |
|
17 | 19 |
|
18 | 20 |
public Config () |
19 | 21 |
{ |
src/main/resources/upassMin.dev-penril.properties | ||
---|---|---|
1 |
# NOTE: |
|
2 |
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3 " |
|
3 |
# Tailing space will cause "ERR: property Not Found" exception. |
|
4 |
|
|
5 |
# Database Connection Info for testing |
|
6 |
#DB_DRIVER=oracle.jdbc.driver.OracleDriver |
|
7 |
DB_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver |
|
8 |
#DB_URL=jdbc:oracle:thin:@demosvr1.penril.net:12311:IBSDEMO |
|
9 |
DB_URL=jdbc:sqlserver://demosvr1.penril.net:1433;databaseName=agroib |
|
10 |
#DB_URL=jdbc:oracle:thin:@localhost:1521:XE |
|
11 |
DB_USERNAME=agro_ib |
|
12 |
DB_PASSWORD=perempuan |
|
13 |
|
|
14 |
# Database Connection info for JNDI |
|
15 |
# org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5@bb2f6e |
|
16 |
DB_USE_JNDI=N |
|
17 |
DB_DATASRC_REF=java:OracleUpassDS |
|
18 |
|
|
19 |
# Flag to get parameters from Database |
|
20 |
DB_USE_SETTING=1 |
src/main/resources/upassMin.properties | ||
---|---|---|
1 |
# NOTE: |
|
2 |
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3 " |
|
3 |
# Tailing space will cause "ERR: property Not Found" exception. |
|
4 |
|
|
5 |
# Database Connection Info for testing |
|
6 |
#DB_DRIVER=oracle.jdbc.driver.OracleDriver |
|
7 |
DB_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver |
|
8 |
#DB_URL=jdbc:oracle:thin:@demosvr1.penril.net:12311:IBSDEMO |
|
9 |
DB_URL=jdbc:sqlserver://demosvr1.penril.net:1433;databaseName=agroib |
|
10 |
#DB_URL=jdbc:oracle:thin:@localhost:1521:XE |
|
11 |
DB_USERNAME=agro_ib |
|
12 |
DB_PASSWORD=perempuan |
|
13 |
|
|
14 |
# Database Connection info for JNDI |
|
15 |
# org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5@bb2f6e |
|
16 |
DB_USE_JNDI=N |
|
17 |
DB_DATASRC_REF=java:OracleUpassDS |
|
18 |
|
|
19 |
# Flag to get parameters from Database |
|
20 |
DB_USE_SETTING=1 |
src/main/resources/upassMin.staging-ci.properties | ||
---|---|---|
1 |
# NOTE: |
|
2 |
# Make sure there is no tailing space at the parameter, eg "...=3" and not "...=3 " |
|
3 |
# Tailing space will cause "ERR: property Not Found" exception. |
|
4 |
|
|
5 |
# Database Connection Info for testing |
|
6 |
DB_DRIVER=oracle.jdbc.driver.OracleDriver |
|
7 |
#DB_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver |
|
8 |
DB_URL=jdbc:oracle:thin:@demosvr1.penril.net:12311:IBSDEMO |
|
9 |
#DB_URL=jdbc:sqlserver://demosvr1.penril.net:1433;databaseName=agroib |
|
10 |
#DB_URL=jdbc:oracle:thin:@localhost:1521:XE |
|
11 |
DB_USERNAME=M2U_UPASS_CI |
|
12 |
DB_PASSWORD=ci123 |
|
13 |
|
|
14 |
# Database Connection info for JNDI |
|
15 |
# org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5@bb2f6e |
|
16 |
DB_USE_JNDI=N |
|
17 |
DB_DATASRC_REF=java:OracleUpassDS |
|
18 |
|
|
19 |
# Flag to get parameters from Database |
|
20 |
DB_USE_SETTING=1 |
Also available in: Unified diff