Blog Archives

SSH Login without password so that tasks can be automated via shell scripts

The aim is to connect from “hostA” as “userA” to “hostB” as “userB” without being prompted to enter the password for userB@hostB. This allows you to scp files from hostA to hostB, create new directory on hostB from hostA, etc without being promoted for password to connect to hostB from

Read more ›

Posted in Unix Tutorial

YAML with Java using the SnakeYaml library tutorial

Step 1: Add “snakeyaml” to maven pom.xml as a dependency

Step 2: Define a YAML file under src/main/resources. For example, “logging.yml”

Step 3: Create a LoggingConfiguration Java POJO class.

Step 4: Finally, the main class that uses the Yaml library to read the configuration from the “logging.yml”

Read more ›

Posted in YAML, YAML Tutorial

03: JMS API & File based JNDI Tutorial with Websphere MQ Client – Message Sender

Step 1: You need to have the Webspeher MQ client jar “com.ibm.mq.allclient.jar” in your project at “${basedir}/lib” and the JMS or JEE jar from a maven repository.

Step 2: Use the “JMS API” to send a message to a queue using a file based JNDI.

Step 3:You need

Read more ›

Posted in Webspeher MQ Tutorials

02: Websphere MQ Client API Tutorial – Message Receiver

Step 1: You need to have the Webspeher MQ client jar “com.ibm.mq.allclient.jar” in your project at “${basedir}/lib”. You can refer to it via Maven as a local file based repository.

Step 2: Use the “Websphere MQ API” to receive a “MQMessage” from a “MQQueue”.

Step 3:You need to

Read more ›

Posted in Webspeher MQ Tutorials

01: Websphere MQ Client API Tutorial – Message Sender

Step 1: You need to have the Webspeher MQ client jar “com.ibm.mq.allclient.jar” in your project at “${basedir}/lib”. You can refer to it via Maven as a local file based repository.

Step 2: Use the “Websphere MQ API” to send a “MQMessage” to a “MQQueue”.

Generally, yo want to

Read more ›

Posted in Webspeher MQ Tutorials

05: Drools with rules in an excel spreadsheet – Global variables & variable capture

This extends 04: Drools with rules in an excel spreadsheet – Data validation . Step 1: Enhance the Trade.java POJO with “actualValues” field and “getFieldValue(String fieldNames)” method.

Step 2: trades-rules.xls with “variables” column. Step 3: The trades.drt template file invoking the “getFieldValues(…)” method & declaring global variables.

Step

Read more ›

Posted in Drools Tutorial

04: Drools with rules in an excel spreadsheet – Data validation

This tutorial uses Drools as a validation engine to validate an input csv file. The rules are maintained externally in an excel spreadsheet. Step 1: Create a new Maven project

“-B” means interactive mode is false. Import it into eclipse or IDE of your choice as a maven project.…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Drools Tutorial, member-paid

06: Capture throughput & latencies with “Metrics Core” tutorial

“Metrics Core” is a very handy framework to gather insights & tune performance of high-throughput and low-latency services. Here is a very simple core Java multi-threaded application that gathers metrics with this library. Step 1: Create a maven project Press enter for all prompts to use the default values.

…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Low Latency, member-paid, Metrics Tutorial
Page 1 of 6123456

800+ Interview Q&As ♥Free|♦FAQ (Mouse Hover for Full Text)

open all | close all

200+ Java FAQs – Memory Joggers

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

80+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your "Career Skills"?

open all | close all