Home
George Aristy
Cancel

Java Raw Types

I was recently confounded by a something unexpected in Java’s type-erasure. Consider the following snippets: public class Issue<T> { public List<String> list() { /* return a list...

Java's equals()/hashCode()

One of my pet peeves of the Object.equals() and Object.hashCode() implementations that every class inherits in Java is the fact that, in principle, these are really intimate concerns of the class i...

Migration to Github Pages

Welcome to the new blog! I’m sunsetting the old blog and migrating all posts here, closer to my public code. The move also allows version control (always welcome) and better automation (via ‘git ...

JDeveloper 11g: SOA composite referencing 2-way-SSL-enabled webservice at design+deployment time

I just spent an embarrassingly long time figuring this out.Design TimeYou’re designing your composite and you need to integrate it with some external web service over SSL. You attempt to add the pa...

Maven: error due to attempt to deploy `sources` artifact twice

Unable to get rid of the 400 error when running a build to deploy your artifact to a maven repository? Have you read about how the sources:jar goal is executed twice and then tried overriding that ...

Java Collections waste (or lack thereof)

If you are a performance freak who makes sure every collection is initialized with the “right” size then don’t be: http://java.dzone.com/articles/java-collection-waste. In all fairness, notice the ...

A note on Weblogic JMS Queue pending + current messages count

Recently I had to perform some load tests on an application that received its input via a Weblogic JMS queue, hence making the rate of message consumption one of the key metrics to keep track of an...

The Case of the Sudden OC4J Restarts [part 2]

<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <body lang=EN-US link=blue vlink=purple> [Please read part 1 here.] TL;DR: for JDK 1.5, watch your Full GC fr...

Vim Tip of the Day!

Let’s say you have to upload a bunch of data to a table and let’s say you need to index them with an ID key.You could just declare the column to auto-increment when creating the table in the databa...

Embedding a CDATA section in your BPEL Response

<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> <body lang=EN-US link=blue vlink=purple> This tip might save you a few minutes. A colleague recently wanted h...