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."
Winners of the latest XSnippets Contest
Wed, Dec 4th 2013 8:48a Serdar Basegmez OpenNTF continues to award high quality
made to the XSnippets
site. Today we are happy to announce the sixth set of winners of the contest
who will each receive $100 (US).
Four snippets have been
selected among all that have been submitted within the last quarter (Jul.1
The judging panel of Mark
Leusink, Per Henrik Lausten and Serdar Basegmez selected the following
snippets based on originality, technical value, reusability and wow factor:
[read] Keywords: dojo
Philippe Riand: Help Wanted for Bootstrap 3.0 Support for XPages
Tue, Nov 26th 2013 12:15a Niklas Heidloff Philippe Riand posted a new release of
with an experimental 3.0.0 theme.
"This release features several
- Bug fixed in the outline menu renderer
(thanks to Colin McDonald for reporting the issue). It also no longer relies
on the blank gif image from oneui, but uses its own copy.
- New 2.3.2 theme, as this is the latest
2.x release of Bootstrap. 2.3.1 is still provided, but will be removed
soon, so use 2.3.2 instead.
- Experimental 3.0.0 theme. [read] Keywords: xpages bug
Meet OpenNTF at IBM Connect 2014
Mon, Nov 25th 2013 12:30a Niklas Heidloff IBM has announced some of the IBM Connect
2014 sessions on the Social
Business Insights Blog. Our OpenNTF
breakout session has been accepted! As in the last three years we will
present the latest and greatest projects and efforts from OpenNTF:
"Don't reinvent the Wheel - (Re)use
Open Source Software from OpenNTF
Speakers: Christian Guedemann, OpenNTF
/ WebGate Consulting AG, Niklas Heidloff, IBM
Abstract: OpenNTF is THE open source
community for IBM Collaboration Solutions with [read] Keywords: collaboration
OpenNTF Essentials available today!
Wed, Nov 20th 2013 1:27p Christian Guedemann We have made a lot of noise about OpenNTF
Essentials. Thanks to all that joined our webinar. It's really a good sign
of our community. Technically OpenNTF Essentials combines a set of projects
into a single updatesite and delivers this with all the example databases
for each individual project. But the technical aspect was not the challenge.
It was hard to define our starting point. Will we displease people because
we have chosen the wrong projects? But it's a bit like doing a sightseein [read] Keywords: collaboration
New OpenNTF Project: XPT / XPages Toolkit
Mon, Nov 18th 2013 10:20a Christian Guedemann I've released the Version 1.0.0 of the
Project XPages Toolkit,
in short XPT. Like the Extension Library or POI4XPages, the XPT is a plugin.
A example database shows the different capabilities of the XPT. To give
you an overview of the features of the XPT I've made this short video.
Hope this gives you a first impression,
what the XPT is. [read] Keywords: xpages database
@DNUG: Niklas Heidloff speaks about OpenNT
Tue, Nov 12th 2013 2:15p Christian Guedemann Niklas Heidloff, Technical Chair at OpenNTF
has the honor to opens the second day of the DNUG "Social
Collaboration 39" Conference.
He will talk about the newest ideas and plans at OpenNTF and give you an
update about all the things that has happen 2013.
If you have any question about OpenSource
or OpenNTF, try to meet him. Are you planing to contribute software, or
have you an idea for a cool project? A short chat with Niklas will help
you to see all the opportunities and prevent you [read] Keywords: collaboration