Assets opened the door to support many features of Liferay Portal’s development framework. There’s more to cover, but the Guestbook app’s back-end is now mature enough to widen its appeal.

Right now, the Guestbook app’s back-end services can only be accessed by modules in the same OSGi container. If you want to read or post Guestbook entries, you have to write and deploy native code on the server. This is fine for some, but others want more: web clients on a different platform; standalone applications using Electron or some other framework; or mobile apps for Android or iOS. Web services power all of these.

You now have an application with back-end services and a front-end web client running in the same container. Web services make it possible to have multiple front-end clients on multiple platforms that access the same back-end. This makes it possible to build headless applications on Liferay Portal, with multiple front-ends elsewhere.

multi-client-application.png

Figure 1: Liferay Portal makes it easy to write multi-client applications.

Next, you’ll use Service Builder to create the Guestbook app’s web services. When you finish, authorized clients can then consume these web services.

Ready to start?

Let’s Go!

Creating Remote Services with Service Builder

Creating Remote Services Step 1 of 1 Earlier, you used Service Builder to generate the Guestbook’s model, persistence, and service layers. Services generated by Service Builder can come in two...

Read More

Implementing Permission Checks

Now that your guestbook and guestbook entry web services exist, you must implement permission checks for them. Implementing permission checks for a web service ensures that only users with the...

Read More
0 (0 Votes)
Adding Asset Features to Your User Interface Previous