354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Register Now for the OpenNTF Annual General Meeting
Mon, Apr 14th 2014 114
On OpenNTF: Script Portlet Samples for IBM WebSphere Portal
Wed, Apr 9th 2014 108
On OpenNTF: Agendas for Meeting Rooms displayed in front of the Rooms
Tue, Apr 8th 2014 167
REST API to read Projects from OpenNTF
Wed, Mar 26th 2014 191
Over 100 Days as OpenNTF Chairman - a short recap
Tue, Mar 25th 2014 223
On OpenNTF: IBM Web Experience Factory Builder for creating JavaScript-based Portlets
Mon, Mar 24th 2014 147
Please join us for the OpenNTF Annual General Meeting
Thu, Mar 20th 2014 180
Top 10
IBM Connect 2014 - BP207 - Don’t Reinvent the Wheel - (Re)use Open Source Software From OpenNTF
Tue, Feb 4th 2014 629
Wizard to create XPages based Mobile Apps
Wed, Feb 5th 2014 391
Eight Community Members Elected to OpenNTF Board of Directors
Tue, Sep 3rd 2013 363
On OpenNTF: Social Edition of the Trouble Tickets App
Mon, Feb 10th 2014 336
On OpenNTF: XPages Unit Test Samples
Wed, Feb 12th 2014 321
Some Pictures from IBM Connect 2014
Mon, Feb 3rd 2014 318
New Release of the XPages Extension Library
Tue, Mar 4th 2014 311
Attend the OpenNTF Domino API Webinar with Nathan Freeman, Paul Withers and Jesse Gallagher
Thu, Jun 20th 2013 308
Infinite Scrolling in Mobile XPages Apps
Mon, Feb 10th 2014 292
OpenNTF - Touchable @ IBM Connect
Wed, Jan 22nd 2014 287


The best hidden and very powerful XPages 8.5.3 Feature
Niklas Heidloff    


I've created a new project which shows how to use a very powerful feature in IBM Domino 8.5.3. The project contains samples demonstrating how to create threads and Eclipse jobs from XPages to run longer taking operations asynchronously without blocking the XPages user interface or to run scheduled tasks.

Watch this video to see the sample in action (video has no tone).

An example is a task that checks on a scheduled basis for new messages in mailboxes, databases, social networks like Facebook and Twitter, etc. Server side code of an XPages application can then get the latest messages simply by reading the cached information from the task.

All samples in this project use a new feature in Domino 8.5.3. com.ibm.domino.xsp.module.nsf.SessionCloner can be used to clone a Domino session of the currently authenticated user. This allows developing threads that run on behalf of a specific user which can use the Domino Java APIs even after the user's HTTP session has expired. com.ibm.domino.xsp.module.nsf.ThreadSessionExecutor which leverages SessionCloner adds additional convenience functionality to set context like the current database, it handles session timeouts, etc.

The Eclipse jobs framework is a powerful framework used by Eclipse rich client developers. Eclipse jobs are essentially threads plus extra functionality like scheduling, progress monitoring, pooling etc. The XPages runtime supports these Eclipse jobs also server side since the necessary plugin comes with the XPages runtime similarly to the OSGi core framework.

In order to run the samples Domino 8.5.3 is needed. The extension library or upgrade pack 1 is only needed to check and display progress in an XPage via the xe:jsonRpcService control.

The Java code for threads and jobs can either be run in a NSF or as plugin. If run in a NSF the java.policy file needs to be changed to grant permissions. For plugins that is not necessary. Check out the project for more details.

These capabilities are advanced capabilities in addition to the 8.5.3 synchronization improvements as mentioned in Karsten Lehmann's blog:
From Phil Riand: "Synchronization no longer happens on the session itself, but on the page instance.  In short, it can now execute 2 different page instances at the same time, while it locks for postback calls to the same page instance and execute them sequentially."
From Karsten: "there will be a new database property called xsp.session.transient. This flag means that unique session objects will be created per request to the server and discarded right after the request ended. This is a first attempt to provide session less mode. If you use this option, then you can create one database with all the services and no synchronization will happen, as each request will have its own session object."




---------------------
http://www.openntf.org/blogs/openntf.nsf/d6plinks/NHEF-8SJB2R
Mar 19, 2012
41 hits



Recent Blog Posts
114


Register Now for the OpenNTF Annual General Meeting
Mon, Apr 14th 2014 6:11a   Christian Guedemann
On Thursday, April 17, 2013 from 11am-12pm EDT, OpenNTF will host its Annual General Meeting. This is an opportunity for anyone interested in the activities and direction of OpenNTF to participate in discussions on the future of OpenNTF. Use the following link to register for the AGM and join us on April 17. We have a lot of interesting topics to share and discus with you! I'm looking forward to see you Christian [read] Keywords: openntf
108


On OpenNTF: Script Portlet Samples for IBM WebSphere Portal
Wed, Apr 9th 2014 12:41a   Niklas Heidloff
Jonathan Booth has contributed a new project, called Script Portlet Samples for IBM WebSphere Portal. See below for his description. Attend the webinar on April 30th to learn more about script portlets. You can find details about the project in the documentation. "With the recently-released IBM Script Portlet for WebSphere Portal, you can use JavaScript/HTML/CSS to create new portlets without deploying code on the server. You can take an existing script application, copy/paste into [read] Keywords: domino ibm application applications css javascript openntf portlet server websphere websphere portal
167


On OpenNTF: Agendas for Meeting Rooms displayed in front of the Rooms
Tue, Apr 8th 2014 12:32a   Niklas Heidloff
Itay Cohen, Boaz Mizrachi, Yaniv Agam and Asher Chen have contributed a new project, called Resource Agenda Presenter. Here is their description: "The RAP application is a system which works in collaboration with the Rooms & Resources application and supplies an on-line rooms/resource agenda on displays located next to the room/resource and includes the time of event, event owner and event subject (can be disabled). The system is an HTML based and therefore supports any OS usin [read] Keywords: collaboration domino application openntf
191


REST API to read Projects from OpenNTF
Wed, Mar 26th 2014 2:25a   Niklas Heidloff
There are more than 850 projects on OpenNTF and many different types of projects which makes it sometimes hard to find the projects certain types of developers are looking for. In order to address this OpenNTF introduces the notion of "project spaces" to group similar types of projects together. Example spaces could be everything related to social or everything related to IBM WebSphere Portal. OpenNTF contributors can request spaces if they have contributed several projects and hav [read] Keywords: connections ibm openntf security websphere websphere portal
223


Over 100 Days as OpenNTF Chairman - a short recap
Tue, Mar 25th 2014 3:15a   Christian Guedemann
My first 100 Days as OpenNTF Chairman where absolute awesome. Let's have a look back and see what's happened in this time! [read] Keywords: openntf
147


On OpenNTF: IBM Web Experience Factory Builder for creating JavaScript-based Portlets
Mon, Mar 24th 2014 1:12a   Niklas Heidloff
Jonathan Booth has contributed a new project to OpenNTF - Script Application Builder for IBM Web Experience Factory. "This is a builder for IBM Web Experience Factory that automates a common pattern for building JavaScript-based portlets that run on IBM WebSphere Portal. With a single builder you can implement a script-based portlet or page within a portlet using JS/HTML/CSS that you provide. Additionally, the builder automatically generates JavaScript variables that enable JSON/RES [read] Keywords: domino ibm application css javascript openntf portlet websphere websphere portal




180


Please join us for the OpenNTF Annual General Meeting
Thu, Mar 20th 2014 3:11p   Per Henrik Lausten
On Thursday, April 17, 2013 from 11am-12pm EDT, OpenNTF will host its Annual General Meeting. This is an opportunity for anyone interested in the activities and direction of OpenNTF to participate in discussions on the future of OpenNTF. As the Agenda shows, there will be reports from the various groups within OpenNTF, and more importantly be time to ask questions, make suggestions, and get involved. The meeting will be held via a teleconference and the dial in numbers are listed [read] Keywords: openntf
204


Overview of the XPages Scaffolding Project on OpenNTF
Thu, Mar 20th 2014 6:11a   Jesse Gallagher
A little while ago, I created a new project from one of my GitHub repositories: XPages Scaffolding. At its core, Scaffolding is the template that I use when creating new XPages projects, and it contains a number of features that I've built up over the years to make the process of building a clean XPages app easier. These range from small utility features like a flashScope object to larger frameworks such as the current versions of my controller and model frameworks. More specificall [read] Keywords: notes ntf xpages bleedyellow bleedyellow.com bug database openntf properties
260


New Functionality in the Single Page Application Wizard for XPages
Wed, Mar 12th 2014 1:13a   Niklas Heidloff
Gary Marjoram has provided a video demonstrating the new functionality of the Single Page Application Wizard that is available in the latest version of the XPages Extension Library. [read] Keywords: xpages application openntf
254


On OpenNTF: Automated Dead Mail Deletion App
Wed, Mar 5th 2014 12:23a   Niklas Heidloff
Shankar Venkatachalam has contributed a project to OpenNTF, called Automated Dead Mail Deletion App. "This application helps IBM Domino administrators in clearing/purging the dead emails from one or more domino servers of their organisation automatically. Design Algorithm: 1) The application server first read it's configuration document, and take a connection to that server. 2) The application also reads the configuration document to understand, how many mail.box are availa [read] Keywords: domino ibm application openntf server




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition