In this part of Spring Boot series, we will learn How to create RESTFul Webservices using Spring Boot. We will also look into Actuator and it’s usefulness in an Application. Spring boot has made bootstrapping Java application incredibly simple. You probably already know about RESTful webservice, however we will see how easily we can create them using Spring Boot annotations.
Steps for implementing DynaCache in Liberty and Websphere
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.
How to configure REST Service (JAX-RS) in IBM Liberty Profile
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.
How to write Java WebService Client using SAAJ API?
We often need a SOAP WebService Client and we might have just a sample request in hand with the endpoint or in case you need a generic webservice client then writing WebService Client using SAAJ API is a very easy way to invoke a WebService. [Read more…]