192 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Use equal for string literal, rather than for an object
Tue, Mar 22nd 2016 6
Typical mistakes with String in Java
Fri, Jan 8th 2016 9
SOAP and passing session
Thu, Jan 7th 2016 7
Java web-consumer in Domino and cookie session
Wed, Jan 6th 2016 9
DSAPI for Domino
Tue, Jan 5th 2016 11
Format datetime object in Lotus Script
Mon, Jan 4th 2016 10
Locale settings for date and time in IBM Domino and Notes
Tue, Oct 27th 2015 7
Top 10
Insufficient memory - NSF pool is full
Mon, Jun 15th 2015 22
Domino and No trusted certificate found
Tue, Jan 28th 2014 17
Disabling certificate validation in Java
Mon, Apr 28th 2014 15
Setup Play Framework and TypeSafe on centOS
Wed, Oct 14th 2015 11
DSAPI for Domino
Tue, Jan 5th 2016 11
Format datetime object in Lotus Script
Mon, Jan 4th 2016 10
Issues when importing WSDL files into Web Service Consumer
Mon, Sep 8th 2014 9
Java web-consumer in Domino and cookie session
Wed, Jan 6th 2016 9
Typical mistakes with String in Java
Fri, Jan 8th 2016 9
Find Orphan pages on website
Mon, Jan 5th 2015 7




Recent Blog Posts
6
Use equal for string literal, rather than for an object
Tue, Mar 22nd 2016 6:19a   Dmytro Pastovenskyi
When you wanna compare String object with string literal, we often disregard what we compare with what, however there is one and safe way to do it. It's much better to use equals() and equalsIgnoreCase() for a string literal, instead of Object, because it helps to avoid possible NullPointerException. Here is an example: String a = null; System.out.print("123".equals(a)); // false System.out.print(a.equals("123")); // java.lang.NullPointerException
9
Typical mistakes with String in Java
Fri, Jan 8th 2016 5:33a   Dmytro Pastovenskyi
Just few typical mistakes developers do when dealing with Strings. It's common stuff and everybody knows that, but for some reasons I still find such things (even written by myself :-)). 1. Checking empty string In old days (version 1.5 and lower) we used String.equal(""), but 1.6 brought us String.IsEmpty which is better and faster. // wrong/slow if (name.equals("")) { // correct/fast if (name.isEmpty()) { 2. Concatenation Method String.concat creates new String object, it's OK to
7
SOAP and passing session
Thu, Jan 7th 2016 6:00a   Dmytro Pastovenskyi
Here is an example how to pass session using SOAP envelope approach. I was starlight with it for some time. That is why people use REST our days :) and not SOAP approach. // Create SOAP Connection SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection soapConnection = soapConnectionFactory.createConnection(); // connect to webserivce SOAPMessage soapResponse = soapConnection.call(connect(username, password), url); // read cookie from respons
9
Java web-consumer in Domino and cookie session
Wed, Jan 6th 2016 3:00a   Dmytro Pastovenskyi
Recently I've faced with few mistake that drain hours from me. I had to make integration with web-serivce. I imported WSDL file and got java classes generated, than I according to documentation I checked connect method with credentials...Error connecting to 'endpoint' on port '443', SSL invalid certificate, may need to cross-certifySpend some time and found very detailed answer on stackoverflow: Create cross certificate for Domino Java agent? Tried connect method again - it worked! Gonna b
11
DSAPI for Domino
Tue, Jan 5th 2016 3:00a   Dmytro Pastovenskyi
This post is about to make short summary about DSAPI filter. I've finished my project some time ago and it looks like I'm not going to do any work with it in near future. What is DSAPI?The Domino Web Server Application Programming Interface (DSAPI) is a C API that lets you write your own extensions to the Domino Web Server. DSAPI extensions, or filters, are notified whenever a particular event occurs during the processing of a request.I've written few articles about DSAPI before and now it i
10
Format datetime object in Lotus Script
Mon, Jan 4th 2016 4:06a   Dmytro Pastovenskyi
Sometimes datetime output become tricky in Lotus Notes. F.x. imagine you have code like this and you have german or any another locale on user's PC. Set dt = New NotesDateTime("") Call dt.SetNow msgbox Format$(dt.LSLocalTime, "dddd, dd. MMMM yyyy") Out would be Tuesday, 22. December 2015 But what if you want output in german i.e.? 22. Dezember 2015 In such case you may want to use LS2J approach to display it properly to user Below you will find a solution that either allow to set




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition