QUICK NOTE ON MULTI-TENANCY This example is for a shared schema approach, which is a common requirement in many SaaS applications. Hibernate currently supports separate database and separate s...
http://blog.chris-ritchie.com/2015/07/multitenancy-bcrypt-password-hashing-wildfly.html
Create a self-signed certificate inside the $JBOSS_HOME/standalone/configuration/ directory: keytool -genkeypair -alias serverkey -keyalg RSA -keysize 2048 -validity 365 -keystore key...
http://blog.chris-ritchie.com/2015/06/configure-ssl-wildfly-8-with-self.html
Often you need to be able to configure different runtime properties based on environment. Using the configuration below, you can have a different property file on each server (dev, production, ...
http://blog.chris-ritchie.com/2015/03/inject-external-properties-cdi-java-wildfly.html
Most of the time you can inject your CDI beans using the @Inject annotation. There may be occasions when you need to access your CDI beans inside a class where you can not use @Inject, you have a...
http://blog.chris-ritchie.com/2015/03/obtaining-reference-to-cdi-managed-bean.html
This tutorial assumes that you have already installed WildFly and you want to configure Apache as a proxy in front of WildFly, and you want to allow websocket connections. For a detailed guide on...
http://blog.chris-ritchie.com/2015/02/configure-wildfly-apache-and-websocket.html
This post covers the main aspects of installing WildFly on a fresh cloud Ubuntu server (or any clean install). This tutorial shows how WildFly can be configured to be accessed directly. If you w...
http://blog.chris-ritchie.com/2015/02/installing-wildfly-on-ubuntu-14.04-cloud-server.html
Here is a simple example of how to send emails securely using JavaMail via your Gmail or Zoho account. The first example uses TLS, which should be your preferred encryption mechanism. The secon...
http://blog.chris-ritchie.com/2015/01/java-mail-example-zoho-gmail-smtps.html
After playing around with various merge tools on Mac, I have come to the conclusion that none match the ease of use that Meld offers. Here is how I managed to install it on my Mac OS X 10.8.5. F...
http://blog.chris-ritchie.com/2015/01/installing-meld-on-mac-os-using-macports.html
In this previous example we use serialize and deserialize classes provided by a Jackson third party datatype . For more control over the date formatting you can opt to create your own serialize ...
http://blog.chris-ritchie.com/2014/09/localdate-java-8-custom-serializer.html
Although I having using Joda Time for years, it is now time to migrate over to the Java 8 Date and Time API (JSR310), and make use of the new LocalDate and LocalTime classes. WildFly 8.1.0 uses...
http://blog.chris-ritchie.com/2014/09/java-8-localdate-with-jackson-serialize.html
When developing, it is often convenient to save session state between redeploys or server restarts. To enable this feature in WildFly 8 you need to add the persistent-sessions element to your co...
http://blog.chris-ritchie.com/2014/07/save-session-state-between-redeploys.html
PREREQUISITES: 1. Download and install Java 8 2. Download and install WildFly 8 4. Download and install Eclipse Luna (4.4) (or Kepler 4.3 patched for Java 8) CONFIGURE WILDFLYS VM ARGS B...
http://blog.chris-ritchie.com/2014/04/how-to-use-java-8-with-wildfly-8-and.html
By adding the Java EE7 BOM (bill of materials) to your pom.xml prevents you from having to add multiple dependencies to your Maven projects. With this you can add a single dependency and have acc...
http://blog.chris-ritchie.com/2013/10/wildfly-server-ee7-bom-maven-coordinates.html
In this example we are going to use the ManagedThreadFactory (part of Java EE7 Concurrency Utils) to create and run a background task. The advantage of this, rather than using java.lang.Thread, i...
http://blog.chris-ritchie.com/2013/10/managed-thread-factory-example-in-wildfly.html
This example shows you how to create a scheduled concurrent task that runs every hour, using the Concurrency Utils API, and how to configure the properties of a ManagedScheduledExecutorService wi...
http://blog.chris-ritchie.com/2013/09/how-to-configure-scheduled-tasks-in-wildfly..html
Concurrency is the ability to run several threads in parallel, within a single process. Since its origin Java has had java.lang.Thread for dealing with concurrency. With Java SE 5 improved supp...
http://blog.chris-ritchie.com/2013/09/simple-concurrency-example-with-wildfly.html
The prime focus of Java EE7 is to continue the simplification brought about with EE6, and to add support for new web technologies, in particular HTML5. The 3 core objectives of Java EE7 being: ...
http://blog.chris-ritchie.com/2013/09/java-ee-7-key-features.html
There are currently 2 ways you can map enums within your JPA entities using the @Enumerated annotation. Unfortunately both EnumType.STRING and EnumType.ORDINAL have their limitations. If you us...
http://blog.chris-ritchie.com/2013/09/mapping-enums-with-fixed-id-in-jpa.html