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.
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
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
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
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."
On OpenNTF: xspless - a LESS CSS Builder for Domino Designer
Thu, Jul 3rd 2014 6:12a Mark Leusink LESS
(Leaner CSS) is a dynamic stylesheet language that allows you to use variables,
nesting, functions (and more) in your CSS file. LESS files can be compiled
into plain CSS file. xspless
is the name of a new project that Jesse Gallagher created. It is a LESS
CSS Builder for Domino Designer. From the documentation:
"This is an Eclipse builder plugin
for Designer. By installing this plugin, right-clicking on an application,
and choosing "Add/Remove LESS CSS Nature", it allows Desi [read] Keywords: domino
Latest Release of XPages Extension Library Improves RDB Support
Tue, Jul 1st 2014 12:12a Peter Janzen The 7th
9.0.1 release of the XPages Extension Library
is now available on OpenNTF. Besides providing a number of fixes for existing
features, this release focuses on improving support for using Relational
Databases as a data source. First and foremost, the Relational Database
plugin has been moved out of ExtlibX and into the main Extlib branch. This
now means that when you install v901_r07 of the Extension Library or subsequent
releases, relational database support in XPages will be inst [read] Keywords: domino
On OpenNTF: Change Tracking for IBM Domino Directory
Tue, May 20th 2014 11:34p Niklas Heidloff Shankar Venkatachalam has published a new
Tracking for IBM Domino Directory”.
"We have created an application
called “Change Tracking for IBM Domino Directory”. As the name indicates,
the application tracks the changes in person and group documents in the
IBM Domino Directory. The application reports what has changed, who has
made the change and when the change has happened.
The application works for IBM Domino
version 6 to 9 as well as i [read] Keywords: domino
OpenNTF.org remembers Tim Tripcony #codefortim
Tue, May 20th 2014 2:11p OpenNTF The entire OpenNTF.org community was shocked
last week to learn about the death of Tim Tripcony. Tim was a prolific
contributor to OpenNTF.org, both with his own projects and his collaboration
on the XPages Extension Library and the OpenNTF.org Domino API. Tim was
a big supporter of open source and the IBM XPages community. His death
touches every one of us personally.
In an effort to remember Tim’s amazing
contributions to our community, the OpenNTF.org board would like to inv [read] Keywords: collaboration