Java programming language is known for its popularity among other Object Oriented Programming languages. Most of the cases developers rely on Java programming languages for developing any great applications or project ideas. There is a high need for Java programming language in the field of IT sector & the need for this programming language is...
Category: Java
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 cover...
Autoboxing In Java – Java Integer == Integer – WTF moment with Java
Autoboxing in Java explained with examples In this post I will try to give you an example showing what autoboxing in Java is. This post is about a curious situation I encountered while debugging a Java application (not written by me). It was quite an “ahhh” “ohhh” “wtf” moment regarding since I spent about an hour...
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 ApacheDS?...
Modal Progress Bar Dialog with Java Swing
In this post I will show you how you can make a modal progress bar dialog in a Java Swing application. Though I am a Java programmer I am mainly involved in web development so my experience with Swing is rather limited. The problem So you have an application made in Java with Swing and...
HQL Date and Datetime Comparison Quick Tip
I’m a big fan of Hibernate and I often use in my projects HQL queries. In this post I will give you some quick tips regarding the use of date and datetime data types in HQL. In a previous post I was looking at the HQL date operator BETWEEN, but in the current post we will...
Java Swing JXTable tutorial – fixing the ColumnControlButton menu
In this post I will show you how you can keep open the menu of ColumnControlButton in a Java Swing application using JXTable. The reason for this JXTable tutorial Want to know what problems you may encounter when using the JXTable component amd how to tackle them? Read on. Through a weird and unwanted series...
Liferay Script for Setting Document Library Folder Permissions
Setting document library folder permissions in Liferay can be a tedious task, especially if you have a complicated structure of shards and organizations. Using a script can be the faster way than doing it manually. In this post I will show you how I manage this task in production servers and will provide you with...
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, col2)...
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 we...