Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay Beginner's Guide

You're reading from   Liferay Beginner's Guide Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

Arrow left icon
Product type Paperback
Published in Dec 2011
Publisher
ISBN-13 9781849517003
Length 396 pages
Edition Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Planning Your Portal FREE CHAPTER 2. Installing a Liferay Portal Instance 3. Understanding Portal Basics and Theming 4. Tips and Tricks-Advanced Configuration 5. Building your First Liferay Site 6. Managing Pages, Users, and Permissions 7. Creating and Publishing Content 8. Exploring Communities 9. Setting up an Online Shop 10. Liferay Server Administration PayPal Test Account Configuration
Pop Quiz Answers Index

Liferay Portal architecture


The popularity of Liferay Portal largely comes from its adaptable architecture. There are three aspects to it.

Web service provider

Liferay Portal adopts a Service Oriented Architecture (SOA). Its architectural diagram is as follows:

In this diagram, Liferay Portal handles Hypertext Transfer Protocol (HTTP) requests from a user. The request will first be received by the Struts servlet. This servlet runs and renders portlets. During the process, the code invokes singletons, configured with Spring Application Programming Interface (API) and plain Java objects. It uses the Hibernate API to get data from or enter data into the database. Optionally, it may use the Java Messaging Service (JMS) to send out messages.

On the other hand, Liferay Portal also provides web services for programs running on other servers. The portal uses Apache Axis specification to generate web services. The Axis configuration is specified in the server-config.wsdd file under the portal/tunnel-web/docroot/WEB-INF/ folder. These are a list of Simple Object Access Protocol (SOAP) services. When an external program asks for a web service from the Liferay Portal, the Axis servlet in Liferay Portal will answer it. It will also call singletons initialized through Spring framework and call the plain Java objects. These plain Java objects will use Hibernate API to access the database.

Liferay is flexible

The architecture of Liferay Portal allows it to run on all major application servers and servlet containers, databases, and operating systems. It can be deployed on over 700 infrastructure combinations. For example, you can use MySQL or Oracle; you can run Liferay Portal in Tomcat or WebSphere.

You can plug in Solr for searching and Kaleo for workflow to Liferay Portal.

The portal administrator can apply different themes on different Liferay Portal pages. He can change the layout template of every portal page. By drag-and-drop, he can add portlets onto a portal page.

Liferay is standard compliant

Liferay Portal is compliant with Java and portlet standards. The following standards have been used in the development of Liferay Portal:

  • Java Specification Request (JSR) 127 (JavaServer Faces Specification)

  • JSR 168 (Portlet Specification)

  • JSR 286 (Portlet 2.0 Specification)

  • JSR 170 (Content Repository)

  • JSR 208 (Java Business Integration)

  • Asynchronous JavaScript and XML (AJAX)

  • Web Services for Remote Portlets (WSRP)

Pop quiz – multiple choices

Choose the correct statements:

a. Liferay Portal is a web service producer out-of-the-box

b. Liferay Portal adheres to Portlet 2.0 Specification

c. The development of Liferay Portal started in 2000

d. All of the above

You have been reading a chapter from
Liferay Beginner's Guide
Published in: Dec 2011
Publisher:
ISBN-13: 9781849517003
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image