Monday, December 19, 2016

Get Liferay Server folder path in liferay

To get the exact path of your server folder in Liferay , then the below code will be help you inspite of any Operating System.

import java.util.Properties;

Properties properties = PortalUtil.getPortalProperties();
String serverHome = properties.getProperty("liferay.home");

No comments:

Liferay DXP JNDI Data Source Cofiguration

 This Blog will help us to learn about the JNDI Data Source Configuration in Liferay DXP. We have tested this with Liferay 7.3 with Tomcat. ...