extension classloaders
Posted: 12 Feb 2009, 14:05
Hi all,
following this discussion I've found a solution to the hot reload of an extension. But I fall down in a new problem. I've two extensions that share spring application context in a singleton and everything was working well if deployed in a single jar_with_dependencies and loaded via standard classloader during smartfox bootstrap, but with such kind of deploy was impossible the hot reload. Now with the new deploy in the javaExtension directory the singleton is initialized twice. Looks like is not recognized as the same type by the application. Which is the strategy you are using to load extension classes ? Are you using different classloaders?
Filippo
following this discussion I've found a solution to the hot reload of an extension. But I fall down in a new problem. I've two extensions that share spring application context in a singleton and everything was working well if deployed in a single jar_with_dependencies and loaded via standard classloader during smartfox bootstrap, but with such kind of deploy was impossible the hot reload. Now with the new deploy in the javaExtension directory the singleton is initialized twice. Looks like is not recognized as the same type by the application. Which is the strategy you are using to load extension classes ? Are you using different classloaders?
Filippo