Java compilers translate Java source code into ‘.class’ files, which contain the Java bytecode for the classes. Much of the information about the source code is kept in the class files. Since the appearance of the first Java decompiler , the threat of...
Thread Local is an interesting and useful concept, yet most of the
Java developers are not aware of how to use that. In this post, I’ll
explain what is Thread Local and when to use it, with an example code.
Since it’ll be little tough to understand this...
I have been playing around with Scalaz
for a couple of weekends now. Scalaz brings to Scala some generic
functions and abstractions that are not there in the current Scala API.
These are mostly *functional* higher order structures that Haskell
Map/Reduce model is very good in processing large amount of data in
parallel. It provides a general partitioning mechanism (based on the
key of the data) to distribute aggregation workload across different
machines. Basically, map/reduce
At Devoxx last week, attendees were asked if Java 8 or 9 should be backwards incompatible, on a community whiteboard. The results from that survey can be seen below: most developers want to see compatability broken to...
This articles describes how to secure a Java web application in JBoss using BASIC authentication.
Step1: Edit web.xml in your application
Edit the web.xml file in your webapp at the following location: WEB-INF/web.xml
Edit your web.xml and put the following...
Logging is a mechanism of keeping track of the runtime behavior of an
application, mainly for debugging / tracing purposes. In almost all of
significantly complex / vital applications, maintaining a proper
application log is a must; hence, almost all...
Last week, I had the pleasure of giving a talk on Continuous
Integration practices with Hudson. The talk went from automating build
jobs to automating build pipelines, and discussed Continuous Deployment
strategies, notification strategies, and general...
Data, Context and Interaction (DCI) is a way to improve the readability
of object oriented code. But it has nothing specific to say about
things like transactions, security, resources, concurrency, scalability,
reliability, or other such concerns.
Devoxx, and all similar conferences, is a place where you make new discoveries, continually. One of these, in my case, at last week's Devoxx, started from a discussion with Jaroslav Bachorik from the VisualVM team. He had presented VisualVM's extensibility in...
When you migrate an application using Apache Axis 1.2 from Java 4 or 5
to Java 6 (JRE 1.6) you will most likely encounter a handful of strange
SOAP/SAAJ/XML errors and ClassCastExceptions. This is due to the fact
that Sun’s implementation of SAAJ 1.3 has...
It ain't easy slinging codeOver the course of my more than
twenty years in the software development industry, I've worked with
hundreds if not thousands of developers. Many of the projects I've been
involved with have suffered from the same malady; a...