We have developed RESTful services using Spring Boot in our last tutorial. Now we will learn How to deploy Spring Boot application in IBM Liberty and WAS 8.5. Many of us are still using IBM Application Servers and it’s very important to understand how we can deploy our spring boot code there.
DynaCache is maintained by the server, means you don’t have to deal with concurrency, threading etc. The downside is, it will allocate memory in the application JVM Heap, increasing the Heap beyond a certain limit might impact the performance negatively, specially during Garbage Collection.
In this article, we will go over how to setup DynaCache in both Liberty & Websphere then use it in our code. DynaCache can also be persistent if you choose the option to use the disk.
Here are the steps for implementing DynaCache in Liberty and Websphere.
Liberty has built in support for JAX-RS, so you can easily implement this without any additional dependency. It’s very easy and you will the service setup in no time.
JAX-RS has gained the popularity over JAX-WS for many reasons, such as light weight, ability to invoke from Java Script, easy to setup etc.
If you want to find out how to setup Liberty you can follow my previous post on How to Setup Liberty. Here are the below steps on how to configure REST Service (JAX-RS) in IBM Liberty Profile.
IBM Liberty Profile has full J2EE support and it’s free for development!!! Thank you IBM ! Finally you have listened to the developers. It was always a nightmare to use the full IBM Application Server in a laptop especially when you are debugging. Also you can send the entire server setup to another developer and in no time your co-workers will have the application up and running. Let’s see how to setup the Liberty with eclipse (In case you are using RAD you can also follow along, it will almost be the same). Find here how to setup IBM Liberty Profile.