Pages

Thursday, May 15, 2014

Activation and passivation in ADF

Here we go with an sample application how activation/passivation works. I'm having application constructed with help of transient view object in model layer.

Step 1: Enable Application Module Pooling.



By default flag checked. with the help of this flag activation/passivation will happens.


Step 2: Creation of transient view object



Step 3: Checking all transient attribute for performing passivation.



if you do the step2 means all value all those attributes in this transient viewobject will be passivated.

Step 4: All attributes passivate flag is checked. 



Note : if you dont want to passivate all attributes in an viewobject means don't check "Including All Transient Values"

you can able to passivate the transient needed individual attribute.
see the following figure.




That's all now activation/passivation will handle by the framework by default.
It will works upon Application Module Connection pooling parameters.

Step 5: Same Transient View objects instance shared in two jspx pages one as af: form and another one as af:table.

Step 6: for debugging use this -Djbo.debugoutput=console
DC Instantiation happening.




Loading BC4J default properties and as previous blog told that       PS_TXN creation.                                              

 
Additional logs.                                                                                                                                                                    

Step 7: After pressing create insert button.



Along with its log. 



Step 8:  After Submit the data to server.



Along with its log.




Step 8: Go to next View page.



 Finally record passivate gets activated.



Download here

1 comment: