Reload class file in tomcat
问题 I am creating a class file at run time. I want to replace the existing class file with the updated one in the class loader. It is similar to hot swapping (e.g. JRebel) which avoids server restart and redeployment. I found context.xml approach for tomcat for context reloading. But it is not very useful in case of production environment. Can we register class with ClassLoader at runtime? Please suggest if any alternative is there to reload class at runtime. I am using following code to retrieve