OnJava.com: Dependency Injection with EE 5.0

OnJava.com have an article giving an overview of how Java 5.0 annotations are used in EE5.0 to support dependency injection.

The article shows how resources which normally have to be ‘looked up’ by the developer writing extra lines of code, can be instead injected into the code using annotations and support from the container. App servers such as Oracle App Server 10g 10.1.3 and JBoss 4.0.1 currently support this functionality, but expect it to be supported in all app servers once we get to Java EE5.0 runnning on Java 5.0 within the next year or so.

Fixing InvalidClassExceptions with Serialization in Java SE 5.0

I recently came across this problem working on a webapp and deploying to JBoss4.0.1/Tomcat5.0 running on Java SE 5.0 – it seems that in 5.0 the JVM strictly enforces a verison value for each serializable class, and if one is not explicitly declared then it is generated, and chances are the value will be different each time a webapp is deployed, even if there are no changes to the Serializable classes.

See my post here in my Java notes section on how to resolve this.