15
new stories - click to show

Javalobby

URL:

http://java.dzone.com/

Catalog:

Technology → Programming → Java
Tech → Programování

Publishes:

2.9 items/day

How to Use Spring Boot and JHipster With Reactive Java Microservices

21:59
Even though it only came to prominence a few years ago, Java has been at the forefront of microservice architecture. Spring Cloud, Spring Data, and Spring Security, Java are well-known high-quality frameworks. Spring WebFlux is a new web framework introduced by Spring Boot 2.0. While previous versions of Spring Boot only shipped with Spring MVC as an option, WebFlux gives the developers the chance to do reactive programming, meaning you can write your code with familiar syntax. As a result, y...

How To Get Attribute Value In Selenium WebDriver

26.February
Introduction Testing a web page can be a gargantuan task, considering all the elements and variables that come together to make a page work. Selenium automation is a great way to overcome these challenges and automate everything you would manually do. For example, Selenium makes it so much easier to take a screenshot using Python instead of doing it manually every time you come across a website issue. Similarly, there are multiple scenarios while writing automation test cases when we need to ...

Using Hamcrest and valid4j With DBC Techniques To Throw Recoverable Exceptions

26.February
Introduction Input validation is one of the most important concerns in methods, especially in the case that you have methods calling between classes; consider a case in which you have a class called CALLER that has a method which calls a specific method in CALLEE class: Java Java x 25 1 public class Caller { 2 3 public void calls ( Object input ){ 4 . 5 . 6 Result result = callee . doSomthing (); 7 8 if ( result == null ){ 9 throw new SomeCallerException (); 10 } 11 else if ( callee . getStat...

Working With Spring Boot and Hazelcast (Distributed Cache)

25.February
Hazelcast provides central and predictable scaling of applications via in-memory access to frequently used data and across an elastically scalable data grid. These techniques both reduce the query load on databases and help improve application speed. Spring Boot is often used to create stand-alone, production-grade Spring-based Applications that you can 'just run.'

MXReflection: A Java Math Framework

25.February
MXReflection is a Java math framework based on mXparser library capabilities. You can calculate complex mathematical operations and functions with Java, just by using class-related fields. MXReflection reads values from the assigned fields and injects the results in the @Expression annotated fields.

Get or Set PDF Metadata in Java

24.February
Introduction Due to their fixed and presentable nature, PDF files are widely used in web applications by both users and businesses. Each of these files contains ‘metadata,' which essentially translates to data about data. PDF metadata contains supplementary information on the document, such as its author, subject, title, creation date, and more. If a PDF file was initially created by a transfer from an original source document (i.e. DocX, PPT, etc.) additional information, such as the file si...

How to Send the Message to the Queue of ActiveMQ? | Java Message Service (JMS) Tutorial

24.February
In the video below, we take a closer look at how to send the message to the queue of ActiveMQ. Let's get started!

Create a New ZIP Archive File in Java

22.February
Creating a ZIP file is one of the best ways to compress large amounts of data into an easily shareable format. The format was originally developed in 1989 for use by PKWARE Inc.’s PKZIP utility and was quickly picked and implemented by other software utilities, such as Microsoft and Apple. Since then, the term “zipping a file” has become synonymous with file compression. There are many advantages to zipping files, with the most obvious reason being to optimize file storage. If you have an abu...

JMS API Programming Model and Java Message Service (JMS) Tutorial [Video]

22.February
In the video below, we take a closer look at the JMS API Programming Model with a Java Message Service (JMS) tutorial. Let's get started!

Java Threads: Are They Memory Efficient?

22.February
Java applications tend to contain hundreds (sometimes thousands) of threads. The majority of these threads are in a WAITING or TIMED_WAITING (i.e., dormant) state, while only a small portion are actively executing lines of code. So, we were curious to know whether dormant threads consume less memory than active threads. To figure out the answer to this question, we conducted a small study.

Deploy Friday: E43 Move your Java microservices to the cloud with Payara

22.February
All companies are software companies, and businesses will always face the challenge of keeping integrations between users and applications scalable, productive, fast, and of high quality. To achieve this, cloud, microservices, and other modern solutions come up more and more in architectural decisions. Is Java prepared to deal with these diverse concepts in a corporate environment? Join us and find out!

Java: Unit Testing Private Methods

21.February
Introduction In this article, I will contemplate the testing of private methods in unit tests. After that, I will propose a way or pattern to do it, if you must. Finally, I will show how you can generate this pattern automatically. And yes, I will also write a takeaway section to know what you have read.

Java Concurrency: Understanding the ‘Volatile’ Keyword

21.February
In this article, I would like to share a different approach on this subject that maybe is helpful for you, and also to talk about some particularities and misconceptions about volatile . There`s very good material on this topic out there (like “Java Concurrency In Practice” [ JCIP ]). I encourage you to read it ;) We will be talking about the semantics of volatile as defined from Java 5 onwards (on previous Java versions, volatile has no memory-consistency/state-visibility semantic). Java Con...

JUnit and TDD for Testing

20.February
I was asked a question from someone learning how to automate with Java. I’ve rewritten and paraphrased the question below. I see that JUnit is a way for a developer to write Unit tests because I want the outcome of the code to work as per assertions. JUnit is for Unit Testing. And Unit tests are written by developers. When will a tester use JUnit?
© 2000-2021 ANNECA s.r.o., Klíšská 977/77, 400 01 Ústí nad Labem, Tel: +420 478571021, Email: info@hearea.com, Twitter: @hreader