Home » Java (page 10)

Java

J2Pay – Complete Example

java-interview-questions-answers

Introduction In this section we will be looking in great detail of how to use a gateway and invoke all four methods successfully i.e. purchase, refund, void and rebill. For this example we will be using Authorize gateway. Let’s begin. First of all we will get the Authorize gateway object. Gateway gateway = GatewayFactory.getGateway(AvailableGateways.AUTHORIZE); But what if you would like ...

Read More »

J2Pay – API Responses

java-interview-questions-answers

Introduction The magical thing in this library is its unique responses no matter whatever gateway is. Once you understand API responses it will be easy for you to use this response for further transactions i.e. refund, void or rebill. First of all as we read in the beginning all responses are JSON. All responses are divided into two json keys. ...

Read More »

J2Pay – Getting Started

Getting started will guide you how to start using J2pay quickly in very simple steps. Download J2Pay is available on maven. <dependency> <groupId>com.tranxactive</groupId> <artifactId>j2pay</artifactId> <version>2.4.0</version> </dependency> You can also download the jar file here Example In this example we will execute Purchase and Rebill transactions. First we will get the desired gateway i.e Authorize Gateway gateway = GatewayFactory.getGateway(AvailableGateways.AUTHORIZE); Since we ...

Read More »

J2Pay – Introduction

java-interview-questions-answers

Introduction J2Pay is an open source multi gateway payment library for java (by tranxactive). The main goal of this library is to provide simple and generic request/response for multiple gateways at the same time it also excludes the reading of documentation of gateways. If you are trying to work on a gateway you do not have to read the documentation ...

Read More »

Spring Data with Thymeleaf

spring-interview-questions-answers

Intro Today I’ll talk about more specific issues. No design patterns or algorithms this time :-). We don’t always design software components from scratch. Often we have to try to make existing software components work together. Spring Boot is one the best free software in the Java world. It resolved a lot of configuration issues with Spring. It is very ...

Read More »

Increasing network throughput with multiple Notaries

Do you need a very high throughput Corda network? Has the network’s throughput levelled out? Have you already squeezed out all the performance you could from other areas? If your answers to these questions are “yes”, then I may have some useful information for you. I have listed out these questions to decrease the chance of you prematurely optimising your ...

Read More »

Insights from Spark UI

As continuation of  anatomy-of-apache-spark-job post i will share how you can use Spark UI for tuning job. I will continue with same example that was used in earlier post, new spark application will do below things – Read new york city parking ticket – Aggregation by “Plate ID” and calculate offence dates – Save result DAG for this code looks like this ...

Read More »

JDK 12’s Files.mismatch Method

JDK 12 introduces a new method to the Files class. The method, Files.mismatch(Path,Path), has been introduced to JDK 12 via JDK-8202302 and is available in JDK 12 Early Access Build 20 (same early access build that supports the new {@systemProperty} Javadoc tag). JDK-8202302 [“(fs) New Files.mismatch method for comparing files”] adds the Files.mismatch(Path,Path) method “to compare the contents of two ...

Read More »