Sometimes you need to have an idea about what happens on your JVM. In fact, your need to profile and monitor your Java Virtual Machine to see how your resources are used. Three ways...
Monthly Archive: March 2016
Liferay IPC using Portlet session (Inter Portlet Communication)
Introduction Once a portlet is placed on a portal page, its data is not directly shared with other portlets. IPC (Inter Portlet Communication) defines the ways that a Portlet can interact and communicate with another...
No main manifest attribute, in jar
Problem Sometimes you face the following error while runing an executable jar : No main manifest attribute, in “<APP_NAME>.jar” Solution Main-class property is missing on your jars META-INF/MANIFEST.MF. Correct it by adding the following...
Write properties file in Java
Properties file are often used in Java applications in the aim to store configuration parameters, internationalization and various informations. Each line of a properties file is a key/value entry. The key and the value...
Liferay database configuration
By default, Liferay use hsql (hypersonic) database which is not recommanded to go with in production environment. Liferay provides a very easy way to use another SGBD on your portal by simple configuration. In this...
Read properties file in Java
Properties file are often used in Java applications in the aim to store configuration parameters, internationalization and various informations. A properties file have « .properties » as extension where each line is a key/value...
How to write file in Java
In this post, you will lean how to write file in Java. 4 various ways will be used : BufferedWriter PrintWriter Using Try with resources Using fileUtils from Apache commons IO 1- BufferedWriter Since...
How to read file in Java
In this tutorial, we will learn how to read file in Java. 4 easy ways will be used : BufferedReader Scanner Using try with resources Using fileUtils from Apache commons IO
Understanding Liferay portlet configuration files
After creating and deploying a Liferay Portlet in the previous post, we will take time now to understand the basic Liferay files, especially these following : Portlet.xml Liferay-portlet.xml Liferay-display.xml Liferay-plugin-package.properties Liferay-hook.xml Web.xml Faces-config.xml