MySQL provides a good step-by-step guide to install MySQL on GlassFish. However, it is manual so I have taken their information and converted it to set of
asadmin commands to set up MySQL on Glassfish and also set it as the default JPA datasource.
Continue reading Set up MySQL on Glassfish using asadmin
One of the problems I have with several web frameworks or even tools that I have used such as Sonar and Jenkins is that they deemed it necessary to develop their own authentication system or use frameworks such as Apache Shiro, Acegi/Spring Security and the ilk as they put authentication responsibility in the hands of the application rather than the container.
Granted the typical container managed authentication is very limited to whatever the container vendor provided or having proprietary extensions such as WebSphere’s Trust Association Interceptors (TAI). Since Java EE 6, a standard way of building this has been created called Java Authentication Service Provider Interface for Containers (JASPIC). This blog post talks about creating a simple JASPIC ServerAuthModule that will use HTTP Headers to contain the authentication data much like SiteMinder does.
Continue reading Creating a simple JASPIC auth module
StartSSL provides a service that allows frugal site owners to get an HTTPS server with a proper certificate for free. This post documents the steps of setting up Glassfish to work with the certificate.
Continue reading Using StartSSL Class 1 Certificates with Glassfish
Though I don’t really recommend people to use a “shared” database, I do prefer running on a real database once in a while rather than relying on the embedded Derby that comes with Glassfish. The main reason is I just want one database application running for whatever tooling I need to use and have it run as a service even though I am the only one using it. That being said, I chose MySQL primarily because it is readily installable on my devops server running Ubuntu.
Continue reading Using MySQL as a Glassfish data source
Recently I have tried to optimize my integration tests for my Java EE 7 application. Previously I had used Cargo to run the server for my integration testing seeing as the team was accepting my patches to get it working for what I needed. I also used EclipseLink to do my JPA testing. Continue reading EJBContainer testing