Category
Java
17 posts · All posts
24 APRIL 2009
Guice and JMX on JBoss
It is very easy to use Guice’s runtime injector bindings to register MBeans on any instance of mbean server. Lets look at a simple example of a HelloMBean.…
3 APRIL 2009
RegEx based Spring AOP auto-proxy creator
When using Spring AOP in a medium-large application to add behavior to objects using crosscutting, it is desirable to have auto-proxy creators rather then creating a proxy for…
27 MARCH 2009
Handling DWR Session timeouts
I recently had an issue in an application using Acegi and DWR, where even after the session invalidation the DWR calls could still be made. It seemed DWR…
1 APRIL 2008
XML Serialization of Java Objects
Sometimes it is necessary to stream objects in a standard way like XML or JSON. There are different ways of doing so. Below I will take an example…
28 MARCH 2008
Deep cloning of Serializable objects
The following code snippet shows how to use Object I/O streams to deep clone Serializable objects. The object bytes once written on an ObjectOutputStream can be read back…
14 SEPTEMBER 2007
Cas-Acegi-Spring integration on JBoss
CAS and Acegi are popular open source authentication and identity solutions available for enterprise java applications. CAS is a Centralized Authentication Server used for single sign-on and to…
25 DECEMBER 2006
Loading Classes directly from JAR files
Whenever a class is referenced in a java program it is loaded using JVM’s bootstrap class loader. This often becomes a problem when two different classes with same…