Blog Archives
1 2 3 4 5

Exposing a Java class as a MXBean (or MBean) tutorial with jconsole

You can take a Java POJO (i.e. Plain Old Java Object) and expose it as an MBean, and view or modify values via JMX. In this tutorial, we will use jconsole, which is a JMX client. Step 1: Create a new Maven based Java project. Step 2: Import it into...

Members Only Content
Log In Register Home


Finding your way around the FIX specification Q&A

Firstly, decide on the specification version. If you are using FIX spec 4.4 then go to https://fixspec.com/FIX44. The tutorials with QuickFIX/J used NewSingleOrder as the request. The message has the fields like Tag number. … Read more ›...

Members Only Content
Log In Register Home


FIX and Java tutorial with QuickFIXj

QuickFixJ is a FIX (Financial Information eXchange) engine for Java. Handy to have knowledge on FIX protocol if you aspire to work for investment banks and other financial services companies. FIX router and FIX engines are depicted below. Step 1: Create a new Maven based Java project. … Read more...

Members Only Content
Log In Register Home


Java to marshal & unmarshal middle of an XML (i.e. a node inside XML) with JAXB

This means handle a middle of an XML document (i.e. a node in middle of an XML), and use JAXB to marshal & unmarshal. The two key words are “JAXBElement” and “javax.xml.stream.XMLStreamReader” to accomplish this as shown below. Marshal a Car object to XML fragment Assume that “Car” … Read...

Members Only Content
Log In Register Home


JAXB with Spring ORM for marshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to marshall with Spring OXM and Spring XML.

Right mouse click on target/generated-sources and select “Build Path –> Use as Source Folder

Step 1: add spring-orm to use JAXB and spring-xml to use StringResult.

Read more ›



JAXB with Spring ORM for unmarshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to unmarshal with Spring OXM and Spring XML.

The Spring & JAXB marshaling tutorial used XML based config to inject the “jaxb2Marshaller”, but in this to make things a bit more interesting, let’s use “Java”

Read more ›



JDBC Tutorial with HSQLDB

This assumes that you have gone through the basic “SQL tutorial with HSQLDB”. This tutorial extends the SQL tutorial by using JDBC (Java Data Base Connectivity) to programmatically connect to the database,  write data to the database, and read data from the database.  This is also known as the CRUD operations,...

Members Only Content
Log In Register Home


1 2 3 4 5

800+ Java Interview Q&As Menu

Learn by categories on the go...
Learn by categories such as FAQs – Core Java, Key Area – Low Latency, Core Java – Java 8, JEE – Microservices, Big Data – NoSQL, Architecture – Distributed, Big Data – Spark, etc. Some posts belong to multiple categories.
Top