This series how to set up a WebSphere Liberty Profile cluster with standard Docker swarm/stack and presently released official images.
The purpose of this is to set up a simple working cluster to allow developers to ensure that their work will function correctly in a clustered environment and neither a robust system with failovers nor scaling.
Continue reading Liberty Docker Cluster
There may be times that you’d need to clean up resources such as temporary files or in my case deregister a container from a WebSphere Liberty Collective. To set this up, we just need to use
bash to handle any cleanup. This will also work with
docker-compose.yml built stacks and
Continue reading Clean up on Docker shutdown
Actually this is more automatic integration testing since the components are tied together. I used Weld for my CDI, EclipseLink for my JPA and Hibernate Validator for my Bean Validation implementations and H2 for my in-memory test database.
There are many algorithms that generate and validate Canadian SIN numbers. This is the one I use with bean validation. Unlike most other implementations I took into consideration that
8 is not used as the first character in a Canadian SIN. In addition, I utilized a map to deal with the doubled number for the even digits rather than doing the calculation and dealing with greater than 10 results. No regexes are involved either.
Continue reading Canadian SIN Bean Validation plus Generation