In my WDP component, I need to lock some backend object at startup.
In the wdDoExit method of the only view or of the component controller I would place some unlock code.
Lock/Unlock is performed through a component interface method which in turn calls a RFC.
If I place the unlock call in the view controller it is executed upon component kill, but not when users close the browser window (I know this since the abap debugger won't be triggered). How can I force the execution also upon browser kill?
Alternatively, I placed the unlock call in the component controller wdDoExit, but I get:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Creating new Controllers while/after exiting a Component is not allowed.
How I can achieve this?