Your XPage app may run out of memory if you put js functions/classes or domino objects in scoped variables because these objects is not Serializable. So because you can it is not always ok to do that 😉
>Just to clarify:
2. Domino objects (that is, anything in the lotus.domino package) may safely be stored in the request scope, but should never be stored in any other scope regardless of serialization settings. This is not strictly because they do not implement Serializable, but because they store a link to a C API object that must be garbage collected to avoid memory leaks. In Java agents, we must do this manually, using the recycle method every Domino object shares. In XPages, Domino does this automatically for us at the end of each request (though it's still a good idea to do this manually when reusing the same variable for many objects, such as when navigating a view). As a result, if a Domino object is stored in the viewScope or higher, it will become toxic at the end of the request in which it was stored, because its C object link will have been automatically recycled at the end of that request.
>Great Tim for the update, this is what we need perhaps a wiki document. That could help all developers out there.
What is missing is a mechanism: please store this in a scope and if it is gone I’m fine if you throw it away. Then functions could be cached there and only occasionally need to be reloaded.
NOTE - You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Fredrik NorlingXPage Developer and IBM Champion for collaborative solutions
Don't do a FP8 update if you have an old unsupported Windows Xp running a Domino server :-) then Java is dead.
Watson & Einstein = friends y lnkd.in/grr7fh7
Modernize your apps NOW not for you it's for the users. They deserve it 👍😁
Didn't session 2 of the opening session never reach IBMGO ?
Yes, Owe Törnqvist did it to the finals on Mello.
Great that Trump is following that 😁👍
Copyright © 2017 | Powered by zBench and WordPress