After migrating to Java 7, our Java client application was unable to authenticate via Kerberos on Windows. If you have the same problem, the following configuration may help you solve it. There is a key allowtgtsessionkey in Windows registry that allows client application to decrypt session key of Kerberos Ticket Granting Ticket (TGT).
Wednesday, July 16, 2014
Saturday, February 16, 2013
Spring Security and Http Basic Authentication
This article will show you how to use Spring Security to protect your web application with Http Basic Authentication.
Log4jdbc: Logging JDBC activity and SQL queries
In an application that frequently queries a database it is important to know what is happening now, how often this or that query occurs and how long it takes to get result. Log4jdbc allows to log database activity e.g. SQL queries, processing time, result sets, connection usage.
Friday, February 15, 2013
RestTemplate and HttpClient 4.1 configuration
This example shows how to configure Spring RestTemplate with Apache HttpClient 4.1 as a transport.
Monday, July 2, 2012
Spring MVC and Velocity WebApp
This tutorial shows how to use Velocity templates with Spring MVC. Velocity is more flexible templating engine than JSP/JSTL standard templates. We will create a simple application that contains 2 pages: list and detail. These pages will have common layout.
Tuesday, May 8, 2012
MySQL: Sort by column with NULLs on top
Common task, when you need to sort table data by a column, that may have null values and you want to put nulls to the top.
Friday, April 27, 2012
Java: Release resources on program termination
Applications use different resources (database connections, file descriptors, etc.) that need to be released when program terminates.
Subscribe to:
Posts (Atom)