Hello,
In a JDBC DAO implementatin class, we usually see the following pattern:
...
private DataSource ds;
public aMethod(){
Connection cx = null;
try{
cx = ds.getConnection();
...
}catch(Exception e){
...
}finally{
if(cx!=null){
try{
cx.close();
}catch(){
}
}
...
}
it is tiring to code the same thing in all DAO methods.
I am looking for a sample code showing how to use AspectJ to handle this.
Thanks!
Franck
--
View this message in context:
http://www.nabble.com/AspectJ-and-Dao-class-tf4311292.html#a12273585
Sent from the AspectJ - users mailing list archive at Nabble.com.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users