In the world of web-applications, our architecture comes into micro services. Where we create micro batches according to our domain and deploy independently.
Java 9 comes with great feature call “Jigsaw“, which modularize monolithic Java code into modules. Where we design independently standard modules with in different scopes. Primary goal of “jigsaw” to make scalability, maintainability, performance, security etc. For more information please click on this link.
Today we creating just a greeting example using project “Jigsaw” or modularize our code independently.
- Download OpenJDK – 9
- Text Editor
Step – I
Create a source directory for our source code:
$ mkdir -p jigsaw-sample1/src
Step – II
Categories our system into modules like in this example, i have one utility module and other main module. The utility module contains utility classes and main module access that utility class and their methods for performing operations.
View original post 410 more words