Code example for TransactionAwareDataSourceProxy

0
		DataSource originalDataSource = super.getDataSource(jcdAlias); 
		if (originalDataSource instanceof TransactionAwareDataSourceProxy) { 
			return originalDataSource; 
		} 
		else { 
			return new TransactionAwareDataSourceProxy(originalDataSource); 
		} 
	} 
 
}