This content has been marked as final. Show 2 replies
From FormHandler call:
SwitchingDataSource sds = getProductCatalog().getDataSource();
Actually there is one SwitchDataSourceFormHandler also which does the same. Although the API documentation say about it to be used with jhtml but I think it should work with JSP as well.1 person found this helpful
It may not be performing the cache invalidation but you can do that as Shaik mentioned. If you want to use SwitchDataSourceFormHandler by extending it with cache invalidation part then you can find its source provided at <ATG>/DAS/src/Java/atg/droplet/sql.