Posts

JSR-168 vs JSR-286 specification.

There is a number of limitations in Java Portlet Specification (JSR-168). The JSR-286 specification is came with overcoming these limitations.       JSR-286 is came with the following features.       Java Portlet Specification 2.0     Inter-Portlet Communication through events and public render parameters.   Serving AJAX or JSON data directly through portlets. Introduction of portlet filters and listeners

Basics of Portlets

                   Portlet Life Cycle Initialization Phase :  init()                                                                                                       The portlet container intstantiate and initialize the portlet application.It call the init() method      for initial portlet configuration.       2.  Action Phase         :  processAction()             When user request for a portlet action by hitting the ActionURL the processAction()            method is...

Installing Liferay in an existing appliation server

Normally Liferay is bundled with different application servers like Tomcat, Jboss, Glass Fish etc.But when our portal is going to deploy in production server, Liferay recommend a better and standard way of deploying the portal in an existing application server. Here I am explaining how to deploy Liferay 6.x portal in Jboss application server. Softwares required : Jboss-5.1.0.GA server. Liferay-portal-6.0.6 war file. Liferay-portal-dependencies-6.0.6 dependencies file. mysql-connector-java-{$version}-bin.jar Download and install  Jboss-5.1.0.GA server into your preferred directory. Go to JBOSS_HOME/server/default/lib directory and copy mysql-connector-java-{$version}-bin.jar into it. Then extract the Liferay-portal-dependencies-6.0.6 dependencies files and move it into JBOSS_HOME/server/default/lib direcory . If you want JBoss to manage the data source, use the following instructions. If you want to use the built-in Liferay data source, you can skip thi...

Setting Up Liferay Development Environment.

Softwares required :- 1. Download latest version of Liferay bundled with tomcat from www.liferay.com 2. Download Liferay plugin sdk from www.liferay.com 3. Download latest version of eclipse ganymede. Extract your liferay tomcat bundle into a location in the local file. Liferay uses Hypersonic as the default database. For connecting liferay with your own database create a file named portal-ext.properties under liferay-portal\tomcat\webapps\ROOT\WEB-INF\classes folder and add the following entries. jdbc.default.driverClassName=com.mysql.jdbc.Driver\  jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false jdbc.default.username=root jdbc.default.password= Here i am using mysql  database with lportal as the database name ,username root and no password. Now execute the startup.bat command in liferay-portal\tomcat\bin directory which will start the liferay server.Once the server is started you ca...