Posts

Showing posts from February, 2022

Automate task with Jenkins and jt400 on IBMi

Image
Automation is a key component for making your life easier. There are dozens of regular, boring tasks that can be automated in order to make your life easier.  The need for task automation has been steadily growing in recent years. One of the reasons behind this is that automation can free up 30% of the time you spend working on daily tasks! What Is Task Automation? Task automation is the use of tools or software to automate repetitive, manual tasks. What Are the Benefits of Task Automation? There are way more advantages to task automation than just reducing manual effort!  There are lots of different tools on the market today that make task automation as easy as possible. But the most popular is Jenkins. For Task Automation on IBMi use Jenkins and the IBM Toolbox for Java CommandCall object to send commands to the server on IBMi.  All you need is jt400 library and a simple groovy script defined in external source control repositories and loaded into existing Pipel...

Password Encryption Decryption in Java with Java 9+ modules

Image
  Java AES Encryption and Decryption Advanced Encryption Standard is one of the most popular encryption algorithms. It is an asymmetric encryption algorithm and more secure. AES is generally used for securing sensitive information so we can say that is enough secure. Before AES most of the organizations used the DES( Data Encryption Standard) algorithm which is not secure and most of the organizations considered that highly insecure. Feature of AES AES is the replacement for DES. Some features of AES are listed below: Symmetric key symmetric block cipher 128-bit data, 128/192/256-bit keys Stronger and faster than Triple-DES Provide full specification and design details Software implementable in C and Java Below is the utility class which will be used for encryption and decryption in Java applications. Java Modules Starting with Java 9 a new concept was introduced: modules. Java modules represent a more powerful mechanism to organize and aggregate packages. A Java module is a way ...

JShell to Improve Your Java Skills

Image
  The Java Shell Tool or in short JShell is a major addition in Java 9.  JShell is quite late to the party, as scripting languages like Python and Node introduced similar utilities years ago, and JVM languages like Scala, Clojure, and Groovy followed in their footsteps. But better late than never. Before the introduction of JShell, there was no way one could do REPL (Read-Evaluate-Print-Loop) in Java. A REPL is a simple, interactive programming environment that takes user input (Read), executes the user command (Evaluate), returns the result to the user (Print) and waits for the next user input (Loop). In fact, to even print a single statement in the console it was absolutely necessary to at least have a class and the main method in it. JShell attempts to take away that pain to a certain extent and adds a full-fledged REPL feature in the Java programming language. JShell is an interactive tool that is useful to learn Java language features, APIs and allows quick prototyping, d...

Creating Efficient Docker Images with Spring Boot 2.3

Image
Spring Boot 2.3 brings with it some interesting new features that can help you package up your Spring Boot application into Docker images. The first problem with common docker techniques is that the jar file is not unpacked. There’s always a certain amount of overhead when running a fat jar, and in a containerized environment this can be noticeable. It’s generally best to unpack your jar and run in an exploded form. The second issue with the file is that it isn’t very efficient if you frequently update your application. Docker images are built in layers, and in this case your application and all its dependencies are put into a single layer. Since you probably recompile your code more often than you upgrade the version of Spring Boot you use, it’s often better to separate things a bit more. If you put jar files in the layer before your application classes, Docker often only needs to change the very bottom layer and can pick others up from its cache. Two new features are introduced in Sp...