Creating a Custom CDI Scope

This post is based on my learnings while creating SimpleBPM and will cover the creation of a simple custom scope. The built-in scopes (Application, Session, Conversation etc) are all you really need most of the time but there may be times when you want more control or need to do some other custom actions. The…

Recreating Seam’s EntityHome in CDI

I mention constantly how working with Seam made life easier. One of the aspects of Seam I grew to love was EntityHome which provided a consistent way of interacting with an Entity. Methods and functionality which is common to most CRUD (Create, Read, Update, Delete) styled pages. In a recent project a lot of the…

How to load system properties from a file in Wildfly 10

Wildfly has the ability to replace placeholders in specific xml files, such as peristence.xml, within your application. This can be great for allowing environment specific JPA settings for example. I’ll cover the specifics of what files support placeholder replacement in another post but for this post I want to cover the importing of an external…

Simple Persistence

In a previous post (found here) I started talking about the confusion and issues around persistence and PersistenceContexts in a CDI/EE application. In this post I’d like to go over in detail my current solutions and tools to make all this stuff simpler! Based on some stuff from Seam and Deltaspike I put together a…

Configuring SSL in Wildfly 8/9/10

Note: this guide is still relevant for Wildfly 9 and Wildfly 10 I’ve just set up a couple of servers running Wildfly 8 and they needed SSL certificates to enable HTTPS. The following documents the steps required to generate the SSL certificate and install/configure it in Wildfly. You can get some cheap SSL certificates here:…

Extended Persistence – Design Flaw or Incompetent Programmer?

Recently I’ve been learning a lot about the subtle nuances of the EE/CDI persistence world and in this post I wanted to give an overview of what I’m finding.   @PersistenceContext(type = PersistenceContextType.EXTENDED) Extended persistence context – the idea sounds great! Let the container manage a persistence context which can span multiple requests. Surely this…

New Project – SimpleEssentials

Just a quick post to announce the creation of SimpleEssentials. This project consists of useful utilities and handy classes and will form the core dependency of most of the other ‘simple’ projects. At the moment stuff is just being moved into there from some of my other projects and as it grows I may well…

Arquillian with Wildfly 8

I’ve recently been looking into Arquillian and have been asked how it can be made to work with Wildfly. In this post I’ll attempt to layout a sample project outlining the steps needed to use the wildfly container for arquillian integration testing. Stick with me this post could get pretty long with code examples. First…

Programatically Evaluate EL Expressions

Sometimes, especially when trying to create generic reusable code, you may want to evaluate an expression (#{mybean.property}) to get a value. I used this a few times in Seam2 but it doesn’t seem to be readily available in CDI. Thankfully I came across a great post http://4thline.org/articles/Java EL in CDI without JSF.html which gives us…