Archive

Archive for August, 2015

VMworld Day One: Contain Containers?

August 31st, 2015 2 comments

Today is the first day of yearly VMworld in San Francisco (strictly speaking, it started yesterday with reception party). The general session started at 10 AM for about one and half hours. Having been with VMworld for many times, I found this general session was pretty exciting with quite a few things worth sharing.

Categories: Virtualization Tags: ,

Authenticating with LDAP Server in Enterprise Java Apps

August 30th, 2015 1 comment

Creating a new user with password is easy for application developers, but not so convenient for the users. Increasingly we have more passwords to remember than we should. It’s now a common practice to authenticate users with LDAP or ActiveDirectory. If a user changes her password in LDAP server, she doesn’t need to do anything in the app.

Categories: Applications & Tools Tags: ,

How to Print out Http Request Headers in Java Servlet

August 25th, 2015 1 comment

While developing a new project, I need to check a request header from client side AJAX call in Javascript. This is not a difficult problem at all, but I found it’s pretty helpful with the headers printed in the log file, especially while debugging. The following code snippet iterates through all the headers and add their values into the string buffer, and further into logger of the Servlet. Notice that the value of a header is not a primitive value, therefore the inner loop is needed to go over each element.

Categories: Software Development Tags: , ,