JAVA Aspect Oriented Programming

ProceedingJoinPoint Java Tips & Tricks

The ProceedingJoinPoint.getSignature() method returns everything you need to get the actual class name, method name, return type and parameters for the joinpoint. Java aspect programming is a powerful tool. In this post I will show you some quick tips & tricks related to the ProceedingJoinPoint Java class from the AspectJ framework. I will only...

ApacheDS LDAP authentication, stay away

While developing a relatively large application, we required a single sign-on authentication. After a brief investigation about what open source solutions there are we decided that we go for the ApacheDS LDAP authentication. I don’t usually do this, I’m not hater, but take this warning from me: stay away from ApacheDS! ApacheDS LDAP What is...

Hibernate batch insert multiple rows on MySQL

Hibernate batch insert refers to making Hibernate insert multiple records with one query. Some databases support this kind of queries, and some do not. MySQL supports batch inserts, but in order to make Hibernate batch inserts work you need to configure it properly. A batch insert query looks like this: INSERT INTO table (col1,...

liferay multi tenancy configuration

Liferay multi-tenancy configuration with shards

Steps to configure a Liferay multi-tenancy environment If you’ve read my previous article Liferay Saas solution – handling multi-tenancy where I describe the principles used to handle a multi-tenancy installation for Liferay, you are probably wondering about the technical details of how to actually configure a Liferay multi-tenancy environment. Well, here is a description of what...

Scroll to top