tag:blogger.com,1999:blog-5874979429188093780.post6779196997294763739..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Demystifying ADF BC Passivation and ActivationAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-5874979429188093780.post-91912049186411002722016-12-14T16:05:25.045+01:002016-12-14T16:05:25.045+01:00Hi Andrejus,
I have a programmatic vo which doesn...Hi Andrejus,<br /><br />I have a programmatic vo which doesn't contain any key attribute. I have tried your approach but still getting the exceptions while running by disabling application module pooling. Can you pls look into this post. https://community.oracle.com/thread/3997370 and give me a solution for that.<br /><br />Best Regards,<br />Raju ChetriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-91352677501109332322015-09-30T12:30:41.034+02:002015-09-30T12:30:41.034+02:00You can set FINEST log level for oracle.jbo packag...You can set FINEST log level for oracle.jbo package. This will allow to see what is being passivated/activated.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-60056190477452505142015-09-30T12:00:05.928+02:002015-09-30T12:00:05.928+02:00We had same problem statement as sachin and set pa...We had same problem statement as sachin and set passivate properties for VO, still it is not getting activation/passivation safe.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-26876686187274309732013-11-06T03:57:11.656+01:002013-11-06T03:57:11.656+01:00Hi Sachin,
I think that you can persistent the tr...Hi Sachin,<br /><br />I think that you can persistent the transient attribute by enable passivate state (Including All Transient Value) in the VO<br /><br />Gud Luck!<br />Đặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-65361709645144644472013-06-14T10:18:14.559+02:002013-06-14T10:18:14.559+02:00Thanks for Article. I see in one of your image in ...Thanks for Article. I see in one of your image in this blog that we can print what is being persisted during passivation. Can you please share how this can be enabled ? In my case, I can see that activation/passivation is kicked-off but I am not able to print that. Thanks.<br />SachinUnknownhttps://www.blogger.com/profile/06626313546096911944noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-76311364280747694912013-06-11T12:43:59.703+02:002013-06-11T12:43:59.703+02:00Andrejus, Please help as we have unique case. We d...Andrejus, Please help as we have unique case. We developed VO with only transient variables, which is being populated by calling Stored Proc. This VO has been incorporated as Tree Table in UI. This data of tree table is not being persisted for some reason. We did everything as mentioned in the ADF documentation as well in your blog and changed all properties. Please give some pointers. Many Thanks for the article and for your help. Cheers, Sachin GuptaUnknownhttps://www.blogger.com/profile/06626313546096911944noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-12186670752753575382013-04-09T11:01:28.423+02:002013-04-09T11:01:28.423+02:00Thanks Anderejus, I will try and report the result...Thanks Anderejus, I will try and report the result later!Dang Viet Hahttps://www.blogger.com/profile/06329664264672300235noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-91007738134257411902013-04-02T18:24:03.630+02:002013-04-02T18:24:03.630+02:00What if you try this approach: http://andrejusb.bl...What if you try this approach: http://andrejusb.blogspot.com/2013/03/adf-rollback-and-keep-current-row.html<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-40333178007202508932013-04-02T17:41:22.955+02:002013-04-02T17:41:22.955+02:00The current row that I mentioned is the new insert...The current row that I mentioned is the new inserted row. I want to keep this current row because I need to do something else with this current row after commit.Đặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-46858250492607776262013-04-02T13:33:18.920+02:002013-04-02T13:33:18.920+02:00What you mean by current row in Create form? Is it...What you mean by current row in Create form? Is it new row that is inserted or the one you had opened before creating new one?<br /><br />I always have idea :)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-36331500702842293942013-04-02T13:27:14.763+02:002013-04-02T13:27:14.763+02:00Andrejus,
I checked and there's no rollback a...Andrejus,<br /><br />I checked and there's no rollback after commit. And I found that the current row is only lost in the create new form (CreateInsertWithParams). In the edit form (ExecuteWithParams), the current row is kept.<br /><br />Do you have any idea about the different between the two?<br /><br />Thank you<br /> Đặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-87468446415772012832013-04-02T07:10:00.611+02:002013-04-02T07:10:00.611+02:00Hi,
After commit - current row is usually not los...Hi,<br /><br />After commit - current row is usually not lost. You should check in the log - may be there is rollback executed after commit?<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-12588418184216326972013-04-02T04:19:34.602+02:002013-04-02T04:19:34.602+02:00Hi Andrejus,
Yes, you're right! The built-in ...Hi Andrejus,<br /><br />Yes, you're right! The built-in selectOneChoice was not lost their binding data but our customize auto-suggestion component was lost their binding data after commit.<br /><br />And one more problem is after commit the current row was also lost. Do you have a solution to keep the current row after commit?<br /><br />Thank you<br />HaDV<br />Đặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-33081419887643129892013-04-01T10:04:14.704+02:002013-04-01T10:04:14.704+02:00Thank you for your reply. I found that, after comm...Thank you for your reply. I found that, after commit the current row was lost so I cannot do any action on the current open form anymore. <br /><br />Can you have a way to keep the current row of the view object after commit?<br /><br />Thank you so much!Đặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-64041098330091649542013-03-30T01:36:42.350+01:002013-03-30T01:36:42.350+01:00Something is very wrong with app implementation. I...Something is very wrong with app implementation. It should not happen like that.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-21734240410809695112013-03-28T11:56:23.925+01:002013-03-28T11:56:23.925+01:00Hi Andrejus,
When I disable the AM Pooling to tes...Hi Andrejus,<br /><br />When I disable the AM Pooling to test the application as in production environment. them all the LOVs lost their bindings after any action on the form.<br /><br />What the problem I have and how to avoid this kind of bug?<br /><br />Thank you<br />HaDVĐặng Việt Hàhttps://www.blogger.com/profile/17479268997831855317noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-68047854285859638102012-06-01T14:19:15.117+02:002012-06-01T14:19:15.117+02:00Advice is equal as a question. Please provide more...Advice is equal as a question. Please provide more details, create sample application to reproduce the case, etc.<br /><br />Its pretty hard to give correct answer to such level of question, there might be many reasons what can go wrong.<br /><br />If there is no detail description, you can call us onsite and we fix all issues :)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-80303716299171033232012-06-01T13:24:39.511+02:002012-06-01T13:24:39.511+02:00OK. Very helpfull advice tocall Red Samurai or som...OK. Very helpfull advice tocall Red Samurai or somebody else!!!<br />thanks...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-70960467778622059242012-06-01T12:45:42.641+02:002012-06-01T12:45:42.641+02:00Hm..., may be call Red Samurai? :-)))
AndrejusHm..., may be call Red Samurai? :-)))<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-70923920421890723322012-06-01T12:40:31.974+02:002012-06-01T12:40:31.974+02:00Hi!
I have 2 VO.All attributes are calculated. Thi...Hi!<br />I have 2 VO.All attributes are calculated. This VOs have attribute CODE(with checked passivate for two VO) mapped to sql. For one Vo this attribute is passivated, for another - NO, as a result I have NullPointerException!<br />Query for VOs is the same!<br /><br />What can I do?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-61673765403524631602012-03-09T21:37:15.355+01:002012-03-09T21:37:15.355+01:00All transient/calculated attributes are not passiv...All transient/calculated attributes are not passivated by default. You should disable AM pooling, and test if nothing breaks.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-83004520261584993792012-03-09T21:06:23.295+01:002012-03-09T21:06:23.295+01:00Hi,
Do we need to passivate the calculated/transie...Hi,<br />Do we need to passivate the calculated/transient attributes of an LOV VO which is based on a sql query. <br /><br />The LOV VO is based on a sql query and created the LOV on someother VO's transient attribute. In this case, do we need to passivate the LOV VO also. We already passivating the VO where the LOV is created.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-18086519642856050482010-05-26T13:51:10.537+02:002010-05-26T13:51:10.537+02:00thanku for letting us know such information and yo...thanku for letting us know such information and you made us to get rid of this kind of variablesastropakhttp://www.astropak.com/noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-18504292579905121562010-03-23T19:42:42.017+01:002010-03-23T19:42:42.017+01:00Hi,
You just need to make sure, transient variabl...Hi,<br /><br />You just need to make sure, transient variable always gets data. Follow best practices, and all will be good :) And use ADF features, avoid custom coding.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-22324160300326476772010-03-23T12:55:39.392+01:002010-03-23T12:55:39.392+01:00Andrejus, this is an illuminating post but I'm...Andrejus, this is an illuminating post but I'm a little confused about how to workaround the problem.<br /><br />I'm not aware of a way in which we can 'make sure that all transient attributes are recalculated' (maybe by re-executing the query?). I think you'll agree, that a value that at any random moment can become null is a fairly useless one.<br /><br />IMO nasty problems like this are the reason this stateful model for business components is just totally the wrong approach. The AM module pooling and passivation is an unholy mess, and one of the most significant reasons I wouldn't recommend ADF to a friend. The ironic thing is that most applications don't actually need these over-complicated features in the first place, they simply suffer from the consequences.Anonymousnoreply@blogger.com