Imagine a bacon-wrapped Ferrari. Still not better than our free technical reports.See all our reports
Tweet Liferay users will be happy to know that it is possible to make a Hook so that you can reload JSP changes without redeploying your application. For those of you new to Liferay and/or JRebel, hooks are small programs that you deploy to overwrite some small part of Liferay’s default functionality. By using Liferay JSP hooks, you can keep your code separated from the default Liferay code; and since Liferay is open source, you can download it, make your code changes then deploy it. By adding JRebel to this equation, you can enjoy a super-fast feedback cycle by eliminating the redeployment process altogether. This is a small “JRebel with Liferay” screencast designed to show you how to do just that. The following versions of software were used in this demo:
- Liferay IDE 1.4.0 (From eclipse marketplace)
- JRebel 4.5.3 (201112070111) (From eclipse marketplace)
- Liferay CE 6.0.6 SDK and bundled tomcat-6.0.29
- You have your development environment ready.
- You have Eclipse installed and it has plugins for both JRebel (or JRebel for Eclipse) as well as Liferay IDE.
- You have made a Liferay server runnable in Eclipse and have set up a Liferay SDK project.
- Starting Liferay server with JRebel enabled.
- Making a small JSP hook, adding and modifying rebel.xml.
- Deploying the hook on server.
- Seeing that when we change the JSP, the page is changed on refresh.