Home » Author Archives: Dustin Marx (page 10)

Author Archives: Dustin Marx

Enhanced Groovy-based JAR/Manifest Diff Tool

groovy-logo

This brief blog post provides another Groovy script that provides simple differencing of two JAR (or WAR or EAR) files and their MANIFEST.MF files. It represents a combination of the JAR comparison script I blogged on earlier, Rick‘s addition of Groovy‘s CliBuilder to allow some output data to be turned off, my MANIFEST.MF comparison script, and an ability to use ...

Read More »

Comparing Manifest Files with Groovy

groovy-logo

My last post discussed comparing the high-level contents of two JAR files using a Groovy script and a 2011 post covered displaying a particular JAR file’s manifest file. This post illustrates the combination of those two ideas with an example of comparing the Manifest files of two different JAR files. As illustrated in the just-referenced two blog posts, it is ...

Read More »

Comparing JARs with Groovy

groovy-logo

It can sometimes be useful to compare the contents of two JARs. In this blog post, I demonstrate a Groovy script that acts like a simple “diff” tool for comparing two JAR files. The Groovy script shown here, jarDiff.groovy, can undoubtedly be improved upon, but does perform what I wanted it to. The script compare two provided JARs in the ...

Read More »

Common Red Flags in Java Development

java-logo

In several years of developing, reading, reviewing, and maintaining hundreds of thousands of lines of Java code, I have become accustomed to seeing certain “red flags” in Java code that often (but perhaps not always) imply problems with the code. I’m not talking about practices that are always wrong, but rather am talking about practices that might, in limited circumstances, ...

Read More »

JDK 8’s Calendar.Builder

java-logo

One of the defining characteristics of the brave new world of Java is the increasing prevalence of the builder pattern in the Java space. Groovy, which appears to be the most popular alternative language (to Java) on the JVM, is well-known for its heavy use of the Builder in both the core libraries and in Groovy-supported libraries and frameworks. Josh ...

Read More »

JDK 8 Javadoc Tweaked For Methods Listings

java-logo

Since it’s beginning, Javadoc output has been largely static HTML with navigation links and simple stylesheet styling of its appearance. Java SE 7 saw the first significant change in Javadoc output default appearance in a long time and now it looks like JDK 8 will introduce a new twist on generated Javadoc output. In this post, I look briefly at ...

Read More »

Becoming Acquainted with Scala

scala-logo

There are many touted benefits of the Scala programming language, especially for Java developers. Among others, Scala’s advertised strengths and advantages include the following: Runs on the Java Virtual Machine (JVM) Able to run on numerous hardware and operating systems platforms Access to rich set of libraries and functionality in the JDK Access to the broad Java ecosystem and its ...

Read More »

Bending NetBeans Code Templates to My Will

netbeans-logo

Anyone who has read any of my posts on NetBeans knows that there are numerous features of NetBeans that I really like. Recently, however, I found myself becoming increasingly irritated with a particular issue with a particular feature of NetBeans. It finally bothered me enough to motivate me to look into how to disable or alter that feature to my ...

Read More »

Detecting Java Threads in Deadlock with Groovy and JMX

groovy-logo

Unfortunately, Java applications taking advantage of multiple threads can at times run into the dreaded deadlock condition. Fortunately, the Java Platform makes deadlock detection relatively easy. In fact, the built-in (since J2SE 5) ThreadMXBean (a PlatformManagedObject exposed via JMX) makes this information available to any client that ‘speaks JMX‘ via the findDeadlockedThreads() and findMonitorDeadlockThreads() methods. General ‘JMX clients’ such as ...

Read More »

“Booting AMX” in GlassFish 3 with Groovy

oracle-glassfish-logo

In my previous blog post, I looked at using JMX as one of multiple methods supported by GlassFish 3 for its administration, monitoring, and management. In this blog post, I look in more detail at monitoring and managing GlassFish 3 via JMX and Groovy. I focus on local connection to GlassFish using the Attach API in this post, but I ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close