Home » Author Archives: Dustin Marx

Author Archives: Dustin Marx

Infinispan Versions Mapped to Minimum Java Versions

java-interview-questions-answers

I’ve been playing around a little bit with Infinispan recently and one of the characteristics of this “distributed in-memory key/value data store” that I have noticed is its relatively aggressive adoption and even requirement of later major versions of Java. The following maps Infinispan releases to minimum required Java SE versions per referenced Infinispan documentation. Infinispan Versions and Their Minimum ...

Read More »

Applying JDK 9 @Deprecated Enhancements

java-logo

I discussed the currently proposed JDK 9 enhancements for the @Deprecated annotation in the blog post JDK 9 @Deprecated Annotation Enhancements. In this post, I look in greater detail at the recommended usage of these minor enhancements and demonstrate how key Java SE APIs are already having these @Deprecated enhancements applied. The current version of the main JEP 277 (“Enhanced ...

Read More »

JDK 9 @Deprecated Annotation Enhancements

java-logo

In the post What Might a New @Deprecated Look Like?, I used the description of JEP 277 (“Enhanced Deprecation”) at that time to guide the creation of an enhanced customized @Deprecated annotation. Since that post, however, there have been significant changes made in JEP 277. This post summarizes the changes and the currently planned enhancements to @Deprecated that are slated ...

Read More »

SPOOLing Queries with Results in psql

software-development-2-logo

SQL*Plus, the Oracle database‘s command-line tool, provides the SPOOL command to “store query results in a file.” The next screen snapshot shows SPOOL used in SQL*Plus to spool the listing of user tables to a file called C:\pdf\output.txt.                 Both the executed query and the results of the query have been spooled to ...

Read More »

Remembering to Reset Thread Context Class Loader

java-logo

I’m having a difficult time thinking of anything I like less about working with Java than working with class loaders. This is particularly true when working with application servers or OSGi where the use of multiple class loaders is prevalent and the ability to use class loaders transparently is reduced. I agree with the OSGI Alliance Blog post What You ...

Read More »

Log4j 2.x XSD is Not Fully Descriptive

apache-log4j-logo

In the blog post JAXB and Log4j XML Configuration Files, I discussed “nuances and subtleties associated with using JAXB to work with [Log4j 1.x and Log4j 2.x] XML configuration files via Java classes.” In this post, I look at another challenge associated with generation of Log4j 2.x configuration XML via JAXB objects generated from the Log4j 2.x XML Schema file ...

Read More »

JAXB and Log4j XML Configuration Files

apache-log4j-logo

Both Log4j 1.x and Log4j 2.x support use of XML files to specify logging configuration. This post looks into some of the nuances and subtleties associated with using JAXB to work with these XML configuration files via Java classes. The examples in this post are based on Apache Log4j 1.2.17, Apache Log4j 2.6.2, and Java 1.8.0_73 with JAXB xjc 2.2.8-b130911.1802. ...

Read More »

Apache PDFBox Command-line Tools: No Java Coding Required

java-logo

In the blog post Apache PDFBox 2, I demonstrated use of Apache PDFBox 2 as a library called from within Java code to manipulate PDFs. It turns out that Apache PDFBox 2 also provides command-line tools that can be used directly from the command-line as-is with no additional Java coding required. There are several command-line tools available and I will ...

Read More »

Apache PDFBox 2

java-logo

Apache PDFBox 2 was released earlier this year and Apache PDFBox 2.0.1 and Apache PDFBox 2.0.2 have since been released. Apache PDFBox is open source (Apache License Version 2) and Java-based (and so is easy to use with wide variety of programming language including Java, Groovy, Scala, Clojure, Kotlin, and Ceylon). Apache PDFBox can be used by any of these ...

Read More »

Our Tools (Sometimes) Lie to Us

software-development-2-logo

My bachelors degree is in Electrical Engineering and when I started looking for my first post-college job, I had to make the decision whether to work in more traditional electrical engineering careers or in computer science-oriented careers. I had been writing code in BASIC since I was a kid, then Borland Turbo Pascal in my middle school and high school ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials