This discussion is archived
2 Replies Latest reply: Sep 6, 2013 1:27 PM by BradW RSS

Taskflow Rollback is causing view objects to clear their cache

BradW Explorer
Currently Being Moderated

We are using JDeveloper 11.1.2.4 and JHS 11.1.2.4.  The Application modules are derived from JhsApplicationModuleImpl.  It looks as though the prepare session does getDBTransaction().setClearCacheOnRollback(false); 

 

We have a taskflow for pop-ups that contains a save and cancel button plus the dynamic region content.  The idea is that the save will invoke the return activity that performs a commit.  This will also close the popup-window.  The cancel button is similar to the save button, but the return activity will end the transaction with a rollback.  This seems to notify ALL accessed view objects to issue a rollback.  This causes each view object to clear their cache and then re-execute the query.However, when the rollback happens it causes all the active views to be cleared and requeried.  This is a performance issue as all the JHS user, module, menu and permission data is requeried.

 

I have also tried using the taskflow savepoints and the same behaviour is observed. 

 

It seems as though the setClearCacheOnRollback may not be adhered to or the assumption has changed.

 

I can also look at doing something different, but this seems to be a bit of an issue with the JHS extensions and / or ADF.  My something different involves a managed bean that can invoke the actual rollback for the view object in question.


Thanks,

 

 

BradW

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points