Summary
A year ago I got an interview where the interviewer asked me to solve the well known Dijkstra’s Sleeping Barber Problem. I did it with blocking queue. The code is clean and simple. I hope you enjoy it as well.
Continue reading
Java
Cryptography: Advanced Encryption Standard (AES) and Hash Java Based Examples
Miscellaneous Java code
Summary
Here is a miscellaneous java code which is useful in my development.
Continue reading
AWS Amazon Simple Email Service (SES) Example
AWS Amazon SimpleDB example
AWS Amazon S3 bucket upload Servlet
Summary
Here’s upload servlet implementation to upload file into AWS S3 bucket. To run servlet you need Amazon credentials for AWS service and bucket name for your s3 Amazon Web Services (AWS).
Continue reading
Java based SSL connection to Tomcat with server and client certifications
Introduction
In this article, we explain how to make SSL (Secure Sockets Layer) connections from Java code to Tomcat using self-signed certificates on server and client sides. We will look at: key store SSL configurations, System.set properties, steps on how to get Tomcat to work on an SSL connection, server.xml settings, and the Handshake Protocol.
GitHub: https://github.com/SVyatkin/tomcat-ssl-java-example
Continue reading