Book Image

Liferay Portal Systems Development

Book Image

Liferay Portal Systems Development

Overview of this book

Liferay portal is one of the most mature portal frameworks in the market, offering many key business benefits that involve personalization, customization, content management systems, web content management, collaboration, social networking and workflow. If you are a Java developer who wants to build custom web sites and WAP sites using Liferay portal, this book is all you need. Liferay Portal Systems Development shows Java developers how to use Liferay kernel 6.1 and above as a framework to develop custom web and WAP systems which will help you to maximize your productivity gains. Get ready for a rich, friendly, intuitive, and collaborative end-user experience! The clear, practical examples in the sample application that runs throughout this book will enable professional Java developers to build custom web sites, portals, and mobile applications using Liferay portal as a framework. You will learn how to make all of your organization's data and web content easily accessible by customizing Liferay into a single point of access. The book will also show you how to improve your inter-company communication by enhancing your web and WAP sites to easily share content with colleagues.
Table of Contents (17 chapters)
Liferay Portal Systems Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Default data population


Now you can start the portal. As you have noticed, the default database, Hypersonic, and the default data are in use. As shown in the following settings, Liferay is configured to use Hypersonic as its database. Do not use Hypersonic in production. Hypersonic is an embedded database useful only for development and demo purposes. The default database settings are defined in portal.properties, which can be overridden by creating portal-ext.properties.

# Hypersonic
jdbc.default.driverClassName=org.hsqldb.jdbcDriver
jdbc.default.url=jdbc:hsqldb:${liferay.home}/data/hsql/lportal
jdbc.default.username=sa
jdbc.default.password=password

As shown in the preceding code, the default data is stored at $LIFERAY_PORTAL/data/hsql/lportal.script. Moreover, the portal provides a dialect detector in com.liferay.portal.spring.hibernate.DialectDetector. This dialect detector will check dialects such as HSQL (Hypersonic), ASE (SybaseASE15Dialect), DB2 (DB2Dialect), Microsoft (SQLServer2008Dialect...