Java
true hotswap
Like many other java users, for years, I have been yearning for true hotswap. I want to add or remove methods, fields, interfaces and everything else like that at runtime and my vm in debug mode should be smart enough to put it in without complaining about non-binary compatible changes. If you have already heard [...]
Perils of URLClassloader
Whenever we create seemingly harmless URlCLassloader in a repeated manner (say to generate / compile code) holding onto a good many jars in url classpath; we should always close the loader instance.
seam performance tips
Some tips on using jboss seam with EL, some handy tools and some code links for custom components
Revival of Java EE
Rebirth of Java EE with a complete metaphorphosis .. starting from rightsizing the platform, zero-configuration, modularization with web-fragments, pluggability with non-java fwks and workflows, simplied packaging, embracing to opensource-based osgi kernel, support of asynchronity, conversation scope and most comprehensive set of annotaions.
profiling hibernate
In production you may have run into problems where a certain flow is slow, turning hibernate statistics on using the jmx-console show a flow unaware view, the blog details somethings to make it stick to a flow
Making a Spring bean Applicationcontext aware
Suppose we have a webapplication with spring, and we are initializing spring’s WebApplicationContext by configuring ContextLoaderListener in web.xml. How can we get an instance of spring’s applicationContext object? Possible solutions: While configuring spring through web.xml the spring ApplicationContext object is set in the ServletContext. To get ApplicationContext we say ApplicationContext applicationContext = (ApplicationContext)servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE); So we [...]
oracle connect by
Some details about “Oracle connect by” clause.
Bulk Delete problem with Hibernate
Bulk operations with Hibernate, will always leads to performence issues Because the operations are performed over the Object graph. If the objects are involved in too many associations, then some times the operation will not successed at all. Lets take the problem with Hibernate Delete operation over a data object with lot of associations. Full [...]
Making applications work together in Eclipse
Eclipse as we know is a great implementation of plugin-architecture.
We decouple different components of a system into bundles.
plugin-architecture is very simplistic in nature, highly extensible and modular at the cost of a tricky class-loading policy.
Actually Eclipse is a story of several class-loaders.
It iniataites a chain of class loaders to load the plug-ins lazily as specified in component-specific manifest.mf files.
If we understand its class-loading policy and learn some tricks, then we can make different third-party jars talk to each other and avoid infamous ‘ClassNotFound Exception’.
Runtime Spring Bean Swap
Ok, the post topic is a bit grandiose, it should have been “Development time swap of spring beans using a custom classloader”, so a few disclaimers, I am only talking about development, I am not aiming for the most optimal solution and yes I am still working on it. The blog is about an approach [...]
