332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
On OpenNTF: Xpages Document Properties
Wed, Jun 19th 2013 126
GeoJSON Map XPages Control to display geographical Information via Google Maps
Tue, Jun 18th 2013 67
IBM developerWorks wants to hear from you
Fri, Jun 14th 2013 338
Please join us for this once a year OpenNTF special event - Annual General Meeting
Wed, Jun 12th 2013 146
T-minus 11 days
Wed, Jun 12th 2013 171
On OpenNTF: Japanese XPages Extension Library
Wed, Jun 12th 2013 45
From the OpenNTF IP Manager
Mon, Jun 10th 2013 281
Top 10
New OpenNTF Project: XPages Insights into Big Data
Wed, Apr 17th 2013 445
More awesome OpenNTF Feedback
Tue, Apr 9th 2013 400
New IP Policy
Wed, May 1st 2013 388
Announcing the Winners of the Fourth XSnippets Contest
Thu, Apr 18th 2013 379
First Release of the XPages Extension Library for IBM Domino 9.0
Tue, Apr 23rd 2013 379
Attend the Getting Started with XPages Webinar with David Leedy and Marky Roden
Wed, May 29th 2013 366
Announcing the OpenNTF Webinars
Thu, Apr 25th 2013 342
IBM developerWorks wants to hear from you
Fri, Jun 14th 2013 338
New Release of the Trouble Ticket Application
Tue, May 7th 2013 315
On OpenNTF: Calendar Service for IBM Domino
Thu, May 2nd 2013 310


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
56 hits



Recent Blog Posts
126


On OpenNTF: Xpages Document Properties
Wed, Jun 19th 2013 12:24a   Niklas Heidloff
As part of the XPages development contest sponsored by WebGate Consulting AG which is part of the Appathon sponsored by IBM developerWorks, Ferry Kranenburg has contributed a project called Xpages Document Properties. Below is Ferry's description. "Xpages Document properties is a custom Dojo widget that shows document properties just like Document Property Viewer and xProperties. This control is completely build from the client side by using a custom Dojo widget. Because of th [read] Keywords: ibm xpages consulting development dojo java openntf properties widget
67


GeoJSON Map XPages Control to display geographical Information via Google Maps
Tue, Jun 18th 2013 6:06a   Niklas Heidloff
As part of the XPages development contest sponsored by WebGate Consulting AG which is part of the Appathon sponsored by IBM developerWorks, Kateryna Czerniachowska and Grzegorz Pawlak have contributed a project called GeoJSON Map. The project contains a custom control that displays geographical information via Google Maps. It reads the data from Notes views and supports various shapes: Point, MultiPoint, LineString, MultiLineString, Polygon, Polygon with hole, MultiPolygon. [read] Keywords: ibm notes xpages consulting development google openntf
338


IBM developerWorks wants to hear from you
Fri, Jun 14th 2013 7:46a   Bruce Elgort
IBM developerWorks has launched the developerWorks LIVE Jam which runs from June 11-18. Here you as a professional developer can give the developerWorks team your thoughts on how you prefer to learn technical skills, share your expertise, and build your online reputation. You can use your IdeaJam.net registration to participate in the jam. If you are not already registered you can register here. [read] Keywords: ibm ideajam ideajam.net openntf
146


Please join us for this once a year OpenNTF special event - Annual General Meeting
Wed, Jun 12th 2013 7:58a   Bruce Elgort
On June 27, 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 OpenNTF's future. As the Agenda (published here a few days ago) shows, there will be reports from the various groups within OpenNTF – but more importantly, this is the time to ask questions, make suggestions, and get involved. We will be discussing the upcoming elections for the Director positions [read] Keywords: openntf
171


T-minus 11 days
Wed, Jun 12th 2013 6:46a   Bruce Elgort
This is just a quick reminder to tell all XPages devs out there that the Appathon XPages Dev contest will close in just 11 days. For those of you with a calendar in front of you that is June 23. To learn more about the Appathon head on over to the Appathon landing page to learn about the prizes that will be awarded. Got questions? Just let us know by leaving a comment. Good luck and OpenNTF hopes that you will join the contest with your code contribution. [read] Keywords: xpages openntf
45


On OpenNTF: Japanese XPages Extension Library
Wed, Jun 12th 2013 3:10a   Niklas Heidloff
Over the last six months several developers have worked on a Japanese version of the XPages Extension Library. Recently they released the 1.0 version after some previous beta versions. The project is a joint effort of developers from IBM (Atsushi Sato, Atsushi Ono, Hiroaki Komine and Tatsuya Sobue) and developers from IBM business partners: Mitsuru Katoh (IBM Champions for ICS) from Teamstudio Japan, Masahiko Miyo (IBM Champions for ICS) from ef, Takeshi Yoshida (IBM Champions fo [read] Keywords: domino ibm xpages applications interface openntf
281


From the OpenNTF IP Manager
Mon, Jun 10th 2013 7:56p   Bruce Elgort
No, I'm not going to talk about the endless debate between the fans of copyleft licenses (GPL et al) and the fans of permissive licenses (Apache/BSD/MIT) – but I am going to mention a few licenses that are “Bad” in the sense that we do not permit their use in OpenNTF projects. The Open Source Initiative is responsible for approving open source licenses. There is quite a range, and some are compatible with others in the sense that you can use MIT, BSD and Eclipse-l [read] Keywords: policies eclipse openntf
216


On OpenNTF: Bootstrap UI Template Kit
Mon, Jun 10th 2013 1:23a   Niklas Heidloff
As part of the XPages development contest sponsored by WebGate Consulting AG which is part of the Appathon sponsored by IBM developerWorks, Oliver Busse has contributed a project called Bootstrap UI Template Kit. The project can be used by developers to easily build applications via the Twitter Bootstrap framework. Watch the video to see the app in action. [read] Keywords: ibm xpages applications consulting development openntf twitter
280


IBM Connections Contest has been extended
Thu, Jun 6th 2013 4:34a   Niklas Heidloff
OpenNTF has extended the deadline for the submissions of the IBM Connections App Dev Contest until November 3rd. This gives developers the chance to work with the new Social Business Toolkit SDK which has an updated JavaScript API, new documentation, API snippets and both XPages and Java support in the Playground. It also allows them to the free trial of the IBM Collaboration QuickStart image which is offered by IBM SmartCloud Enterprise. The image comes with IBM Connections pre-install [read] Keywords: collaboration connections ibm xpages applications enterprise java javascript openntf




182


Replay of the Webinar "Getting Started with XPages"
Tue, Jun 4th 2013 10:36p   Niklas Heidloff
Thanks to everyone who attended our second webinar "Getting Started with XPages". The webinar was well attended and Marky Roden and David Leedy did a great job explaining Domino developers how to get started with XPages. If you missed it, you can watch the video, listen to the audio or read the slides. [read] Keywords: domino xpages openntf




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