Thursday, 27 December 2012
Monday, 22 October 2012
Wednesday, 26 September 2012
Wednesday, 29 August 2012
Aspect Oreinted programming
Advice is the job of an Aspect.
JOIN POINTS:
A join point is a point in
the execution of the application where an aspect can be plugged in. This point could
be a method being called, an exception being thrown, or even a field being modified.
POINTCUTS:
If advice defines the what and when of aspects, then pointcuts define the where. A
pointcut definition matches one or more join points at which advice should be woven.
Often you specify these pointcuts using explicit class and method names or through
regular expressions that define matching class and method name patterns. Some AOP
frameworks allow you to create dynamic pointcuts that determine whether to apply
advice based on runtime decisions, such as the value of method parameters.
An aspect is the merger of advice and pointcuts. Taken together, advice and point-
cuts define everything there is to know about an aspect—what it does and where and
when it does it.
Wednesday, 15 August 2012
Tuesday, 7 August 2012
Monday, 6 August 2012
Thursday, 12 July 2012
Wednesday, 6 June 2012
Wednesday, 23 May 2012
Friday, 18 May 2012
Monday, 7 May 2012
configure a dataSource in tomcat server
This is the dataSouce bean:
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/ig/jdbc/rtfdatasource"/>
<property name="resourceRef" value="true" />
</bean>
change the context.xml file which looks like:
<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader" />
<Resource name="ig/jdbc/rtfdatasource" auth="Container" type="javax.sql.DataSource" username="rtf_uat" password="************" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vrdevora003.iggroup.local)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=RTF.DEV.IGGROUP.LOCAL)))" maxActive="20" maxIdle="2" minIdle="1" initialSize="2" />
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/ig/jdbc/rtfdatasource"/>
<property name="resourceRef" value="true" />
</bean>
change the context.xml file which looks like:
<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader" />
<Resource name="ig/jdbc/rtfdatasource" auth="Container" type="javax.sql.DataSource" username="rtf_uat" password="************" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vrdevora003.iggroup.local)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=RTF.DEV.IGGROUP.LOCAL)))" maxActive="20" maxIdle="2" minIdle="1" initialSize="2" />
Subscribe to:
Comments (Atom)