How to use the Liferay transaction manager with Spring MVC portlets
Liferay provides a class-loader-proxy (CLP) for their Transaction Manager. 1. Add the following to your spring context.xml:  <context:component-scan base-package="foo.bar" /> <bean id="txManager" class="com.liferay.util.spring.transaction.TransactionManagerClp"> </bean> <tx:annotation-driven transaction-manager="txManager"...
Read More About How to use the Liferay transaction manager with Spring MVC portlets »
How to log portlet performance with Liferay
I'm currently helping a client to ensure their Liferay Portal meets the performance targets set by the business. Since many of the portlets are custom-developed, we need to identify which portlets are causing high latencies under load. Set the following logger in your Log4j configuration, in our case, tomcat/lib/META-INF/portal-log4j-ext.xml :     <category...
Read More About How to log portlet performance with Liferay »
How to run the unit tests for Liferay Portal trunk
Running the unit tests for Liferay Portal with MacOS X is straight-forward once you know how. Set up the environment Install Ant 1.7+ Install MySQL 5.0+ Install Java 6.0+ Set environment variables: export JAVA_OPTS="-Xmx512m -XX:MaxPermSize=256m" export COMPUTERNAME=$HOSTNAME  Create the directory structure The following commands: ...
Read More About How to run the unit tests for Liferay Portal trunk »
Script to delete Liferay users
The following BeanShell script can be used to bulk delete all non-admin users in a Liferay instance, including their groups, subscriptions, announcements, assets, blogs, etc. : import com.liferay.portal.util.PortalUtil; import com.liferay.portal.service.UserLocalServiceUtil; import java.util.concurrent.*; pool = Executors.newFixedThreadPool(20); for (user :...
Read More About Script to delete Liferay users »
Improved JTop with CPU per interval
The JTop plugin for jconsole provides information on the most resource-intensive Java threads. Rejeev Divakaran has extended JTop to include CPU per interval instead of just the cumulative CPU. This makes JTop more useful for diagnosing transient spikes in CPU usage.
Read More About Improved JTop with CPU per interval »
Showing 1 - 5 of 39 results.
Items per Page 5
of 8