Revision 114:9e876755f394

View differences:

pom.xml
406 406
			<dependencies>
407 407
				<dependency>
408 408
					<groupId>org.hibernate</groupId>
409
					<artifactId>hibernate-c3p0</artifactId>
410
					<version>3.3.1.GA</version>
411
				</dependency>
412
			</dependencies>
413
			<build>
414
				<plugins>
415
					<plugin>
416
						<groupId>org.glassfish</groupId>
417
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
418
						<configuration>
419
							<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
420
						</configuration>
421
					</plugin>
422
				</plugins>
423
			</build>
424
		</profile>
425
		<profile>
426
			<id>env-maybank-dev-jndi</id>
427
			<activation>
428
				<property>
429
					<name>env</name>
430
					<value>maybank-dev-jndi</value>
431
				</property>
432
			</activation>
433
			<properties>
434
				<config.postfix>.maybank-dev-jndi</config.postfix>
435
			</properties>
436
			<dependencies>
437
				<dependency>
438
					<groupId>org.hibernate</groupId>
439 409
					<artifactId>hibernate-core</artifactId>
440 410
					<version>3.3.1.GA</version>
441 411
					<type>jar</type>
......
519 489
					</exclusions>
520 490
				</dependency>
521 491
			</dependencies>
522
		</profile>
523
		<profile>
524
			<id>env-maybank-prod-jndi</id>
525
			<activation>
526
				<property>
527
					<name>env</name>
528
					<value>maybank-prod-jndi</value>
529
				</property>
530
			</activation>
531
			<properties>
532
				<config.postfix>.maybank-prod-jndi</config.postfix>
533
			</properties>
534
			<dependencies>
535
				<dependency>
536
					<groupId>org.hibernate</groupId>
537
					<artifactId>hibernate-core</artifactId>
538
					<version>3.3.1.GA</version>
539
					<type>jar</type>
540
					<scope>compile</scope>
541
					<exclusions>
542
						<exclusion>
543
							<groupId>xml-apis</groupId>
544
							<artifactId>xml-apis</artifactId>
545
						</exclusion>
546
					</exclusions>
547
				</dependency>
548
			</dependencies>
492
			<build>
493
				<plugins>
494
					<plugin>
495
						<groupId>org.glassfish</groupId>
496
						<artifactId>maven-embedded-glassfish-plugin</artifactId>
497
						<configuration>
498
							<app>${project.build.directory}/${project.artifactId}-${project.version}.war</app>
499
						</configuration>
500
					</plugin>
501
				</plugins>
502
			</build>
549 503
		</profile>
550 504
		<profile>
551 505
			<id>cobertura-instrument</id>
resources/hibernate.maybank-dev-jndi.cfg.xml
1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
3
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4

  
5
<hibernate-configuration>
6
	<session-factory>
7
		<!-- Database connection settings -->
8

  
9
<!--
10
 		<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property>
11
		<property name="hibernate.connection.username">upassdev</property>
12
		<property name="hibernate.connection.password">upassdev</property>
13
		<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
14
 -->
15

  
16
		<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property>
17
		<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property>
18
		<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property>
19
		
20
		<!-- Database connection settings -->
21
		<!-- SQL dialect -->
22
		<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
23

  
24
		<!-- Enable Hibernate's automatic session context management -->
25
		<property name="current_session_context_class">thread</property>
26

  
27
		<!-- Disable the second-level cache -->
28
		<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
29

  
30
		<!-- Echo all executed SQL to stdout -->
31
		<property name="show_sql">false</property>
32
		<property name="format_sql">true</property>
33

  
34
		<property name="hibernate.hbm2ddl.auto">none</property>
35

  
36
		<!-- Mapping files -->
37
		<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" />
38
		<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" />
39
		<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" />
40
		<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" />
41
		<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" />
42
		<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" />
43
		<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" />
44
		<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" />
45
		<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" />
46
		<!-- 
47
		<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" />
48
		<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" />
49
		 -->
50
		
51
		<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" />
52
		<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" />
53
		<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" />
54
		<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" />
55
		<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" />
56
		<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" />
57
		<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" />
58
	</session-factory>
59
</hibernate-configuration>
resources/hibernate.maybank-dev.cfg.xml
1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
3
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4

  
5
<hibernate-configuration>
6
	<session-factory>
7
		<!-- Database connection settings -->
8

  
9
<!--
10
 		<property name="connection.url">jdbc:oracle:thin:@172.31.11.50:1521:ibd</property>
11
		<property name="hibernate.connection.username">upassdev</property>
12
		<property name="hibernate.connection.password">upassdev</property>
13
		<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
14
 -->
15

  
16
		<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property>
17
		<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property>
18
		<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property>
19
		
20
		<!-- Database connection settings -->
21
		<!-- SQL dialect -->
22
		<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
23

  
24
		<!-- Enable Hibernate's automatic session context management -->
25
		<property name="current_session_context_class">thread</property>
26

  
27
		<!-- Disable the second-level cache -->
28
		<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
29

  
30
		<!-- Echo all executed SQL to stdout -->
31
		<property name="show_sql">false</property>
32
		<property name="format_sql">true</property>
33

  
34
		<property name="hibernate.hbm2ddl.auto">none</property>
35

  
36
		<!-- Mapping files -->
37
		<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" />
38
		<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" />
39
		<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" />
40
		<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" />
41
		<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" />
42
		<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" />
43
		<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" />
44
		<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" />
45
		<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" />
46
		<!-- 
47
		<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" />
48
		<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" />
49
		 -->
50
		
51
		<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" />
52
		<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" />
53
		<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" />
54
		<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" />
55
		<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" />
56
		<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" />
57
		<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" />
58
	</session-factory>
59
</hibernate-configuration>
resources/hibernate.maybank-prod-jndi.cfg.xml
1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
3
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4

  
5
<hibernate-configuration>
6
	<session-factory>
7
		<!-- Database connection settings -->
8

  
9
		<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property>
10
		<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property>
11
		<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property>
12
		
13
		<!-- Database connection settings -->
14
		<!-- SQL dialect -->
15
		<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
16

  
17
		<!-- Enable Hibernate's automatic session context management -->
18
		<property name="current_session_context_class">thread</property>
19

  
20
		<!-- Disable the second-level cache -->
21
		<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
22

  
23
		<!-- Echo all executed SQL to stdout -->
24
		<property name="show_sql">false</property>
25
		<property name="format_sql">true</property>
26

  
27
		<property name="hibernate.hbm2ddl.auto">none</property>
28

  
29
		<!-- Mapping files -->
30
		<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" />
31
		<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" />
32
		<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" />
33
		<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" />
34
		<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" />
35
		<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" />
36
		<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" />
37
		<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" />
38
		<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" />
39
		<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" />
40
		<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" />
41
		<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" />
42
		<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" />
43
		<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" />
44
		<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" />
45
		<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" />
46
	</session-factory>
47
</hibernate-configuration>
resources/hibernate.maybank-prod.cfg.xml
1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
3
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
4

  
5
<hibernate-configuration>
6
	<session-factory>
7
		<!-- Database connection settings -->
8

  
9
		<property name="hibernate.connection.datasource">jdbc/UPassDataSource</property>
10
		<property name="hibernate.jndi.url">t3://172.31.20.101:7010</property>
11
		<property name="hibernate.jndi.class">weblogic.jndi.WLInitialContextFactory</property>
12
		
13
		<!-- Database connection settings -->
14
		<!-- SQL dialect -->
15
		<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
16

  
17
		<!-- Enable Hibernate's automatic session context management -->
18
		<property name="current_session_context_class">thread</property>
19

  
20
		<!-- Disable the second-level cache -->
21
		<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
22

  
23
		<!-- Echo all executed SQL to stdout -->
24
		<property name="show_sql">false</property>
25
		<property name="format_sql">true</property>
26

  
27
		<property name="hibernate.hbm2ddl.auto">none</property>
28

  
29
		<!-- Mapping files -->
30
		<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" />
31
		<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" />
32
		<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" />
33
		<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" />
34
		<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" />
35
		<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" />
36
		<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" />
37
		<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" />
38
		<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" />
39
		<mapping resource="my/com/upass/hibernate/ClientApp.hbm.xml" />
40
		<mapping resource="my/com/upass/hibernate/UserAppAccess.hbm.xml" />
41
		<mapping resource="my/com/upass/maybank/entities/hibernate/IbccUser.hbm.xml" />
42
		<mapping resource="my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml" />
43
		<mapping resource="my/com/upass/maybank/entities/hibernate/M2uUser.hbm.xml" />
44
		<mapping resource="my/com/upass/maybank/entities/hibernate/StockUser.hbm.xml" />
45
		<mapping resource="my/com/upass/maybank/entities/hibernate/TicketingUser.hbm.xml" />
46
	</session-factory>
47
</hibernate-configuration>
resources/spring-ldap.maybank-dev-jndi.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resources/spring-ldap.maybank-prod-jndi.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resources/spring-ldap.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
3
<beans>
4
    <bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
5
        <property name="url" value="ldap://172.31.11.36:389" />
6
        <!-- property name="url" value="ldaps://172.31.11.36:636" /-->
7
        <property name="userDn" value="cn=Directory Manager" />
8
        <property name="password" value="password" />
9
    </bean>
10
    <bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
11
        <constructor-arg ref="contextSource" />
12
    </bean>
13
    <bean id="maybankLdap" class="my.com.upass.spring.ldap.MaybankLdapDAOImpl">
14
        <property name="ldapTemplate" ref="ldapTemplate" />
15
        <property name="base" value="ou=People,o=maybank"/>
16
        <property name="usernameAttrName" value="mbbuserid"/>
17
        <property name="baseTicketing" value="ou=WebLogic,o=maybank"/>
18
        <property name="uidAttrName" value="uid"/>
19
    </bean>
20
</beans>
resources/upassMin.maybank-dev-jndi.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
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y
resources/upassMin.maybank-dev.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
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y
resources/upassMin.maybank-prod-jndi.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
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y
resources/upassMin.maybank-prod.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
# Flag to get parameters from Database
6
DB_USE_SETTING=1
7

  
8
# Migration period flag
9
MIGRATION_PERIOD=Y

Also available in: Unified diff