Wednesday, October 31, 2007

Java Class Loaders

Be sure to check out this decent article on JCL on the commons-logging page:
JCL Information

Another article on Classloaders is on Java World: Find a way out of the ClassLoader maze

* JNDI uses context classloaders
* Class.getResource() and Class.forName() use the current classloader
* JAXP uses context classloaders (as of J2SE 1.4)
* java.util.ResourceBundle uses the caller's current classloader
* URL protocol handlers specified via java.protocol.handler.pkgs system property are looked up in the bootstrap and system classloaders only
* Java Serialization API uses the caller's current classloader by default

The JNDI Tutorial talks about Classloaders.

Sunday, October 28, 2007


Ignore the following as it is just a personal notepad:

Copy to tomcat lib:

endorse tomcat. (copy endorsed directory under tomcat dir)

Friday, October 26, 2007

Should I do JAXRPC or JAXWS?

You may be plagued by this question often when you are starting to evaluate web service technologies in the Java EE space.

A good article that has take a decent stab at addressing this issue is:

In my honest opinion, you should choose JAX-WS because it brings you simplicity. EJB3 with JSR-181 type web services is the ultimate choice.

Thursday, October 25, 2007

Local DNS Modifications on Windows

Original Location:

On Unix, /etc/hosts file contains mappings between an IP address and a name of the host. It overrides mappings from DNS. Windows has an equivalent of this file: c:\WINDOWS\system32\drivers\etc\hosts (at least that's the name on Windows XP).

Here's the simplest mapping from to localhost and names: localhost